This pull request includes changes to improve error handling and code clarity in the sn_node and sn_transfers modules. The most important changes involve refining the logic for detecting spent transactions and updating the method for checking file existence.
Improvements to error handling and code clarity:
sn_node/src/put_validation.rs: Updated the logic to handle different outcomes of wallet.get_confirmed_spend(spend_addr), including logging an error when an error is encountered and providing more specific warnings for different cases.
This pull request includes changes to improve error handling and code clarity in the
sn_node
andsn_transfers
modules. The most important changes involve refining the logic for detecting spent transactions and updating the method for checking file existence.Improvements to error handling and code clarity:
sn_node/src/put_validation.rs
: Updated the logic to handle different outcomes ofwallet.get_confirmed_spend(spend_addr)
, including logging an error when an error is encountered and providing more specific warnings for different cases.sn_transfers/src/wallet/wallet_file.rs
: Changed the method for checking if a file exists fromis_file()
toexists()
to improve clarity and correctness.