Node
Node copied to clipboard
GH-606-Review-4
Summary (from AI Assistant)
Changes
- Changed accountant::mod.rs
Adjusted the field new_start_block in struct ReceivedPayments to be of type
Option<u64>
. Altered multiple unit tests to reflect the new field type. Enforced an additional condition to only update thenew_start_block
if its value is greater than the current start block maintained in the persistent configuration. - Modified accountant::scanners::mod.rs
Similar to accountant::mod.rs, an additional condition was added before updating the
new_start_block
.new_start_block
is now checked in two methods to ensure it isn't updated with lower values which would lead to reprocessing of previously processed blocks. Various unit tests adjusted to incorporate the changes related tonew_start_block
. Note: The commit involves improvements and code quality changes and does not appear to add any new features or remove existing ones.