MASQ combines the benefits of VPN and Tor technology to create a superior next-generation privacy software, where users are rewarded for supporting an uncensored global web. Users gain privacy and anonymity online, while helping promote Internet Freedom.
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 the new_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 to new_start_block.
Note: The commit involves improvements and code quality changes and does not appear to add any new features or remove existing ones.
Summary (from AI Assistant)
Changes
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.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.