Consolidation of an egress record implies fetching the receipts batch it refers to and processing each of the receipts in it. As part of this processing, each receipt should be validated (
|
// TODO: do more validation here. |
|
// At the very least that the invocation is a retrieval invocation and the audience is the node |
).
At the very least, the validator should be invoked to check the delegation chain (see Alan's comment), but there are likely other validations we can implement.
Consolidation of an egress record implies fetching the receipts batch it refers to and processing each of the receipts in it. As part of this processing, each receipt should be validated (
etracker/internal/consolidator/consolidator.go
Lines 229 to 230 in 35cc8d6
At the very least, the validator should be invoked to check the delegation chain (see Alan's comment), but there are likely other validations we can implement.