node: Accountant audit improvements#4839
Conversation
|
Claude finished @djb15's task in 3m 30s —— View job Code Review: Accountant Audit Improvements
SummaryThis PR makes substantial improvements to the accountant audit flow — switching from I've posted 6 inline comments. Here's a summary by severity: High (1)
The file prologue states "If the transfer is for a different guardian set, it is skipped", but this filter is not implemented. The code iterates all Medium (2)
Low (3)
What looks good
|
johnsaigle
left a comment
There was a problem hiding this comment.
One small wording suggestion, feel free to ignore.
f9b65af to
5419622
Compare
efaf89b to
e0c64d8
Compare
e0c64d8 to
113c69b
Compare
This PR includes the following changes to the Accountant:
query_all_pending_transfers(rather thanquery_missing_observations), as the former supports pagination. This guarantees that the audit flow will always run and there is no risk of exceeding query gas limits.subChannow has a blocking variant. When submitting to the channel from the audit flow we will happily wait for room to open up in the channel, vs from the processor we continue to try and move on if there is a failure.Other avenues explored:
query_missing_observations, however this would require a smart contract upgrade. I elected to instead stick to making only Guardian changes for simplicity and ease of release.