MASQ-Project / Node

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.
https://masqbrowser.com
Other
173 stars 28 forks source link

GH-606-Review-4 #449

Open masqrauder opened 2 months ago

masqrauder commented 2 months ago

Summary (from AI Assistant)

Changes

  1. 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.
  2. 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.