Add WalletDb Initialization to StorageNode::new() in src/storage.rs #105
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description: WalletDb Initialization in StorageNode
Summary of Changes
This pull request introduces a new WalletDb initialization in the
StorageNode::new()function located insrc/storage.rs. The implementation mirrors the WalletDb initialization found insrc/miner.rsto ensure consistent behavior across modules.Motivation
The addition of WalletDb initialization to
StorageNodeis aimed at enhancing the functionality of wallet management within the storage component of the application. This change is intended to provide seamless integration and improve overall performance-related tasks that depend on wallet operations.Background
Previously, the
StorageNodedid not include WalletDb initialization, which could lead to discrepancies in how wallet data was handled between storage and mining contexts. This update synchronizes the initialization process to support better wallet operations and data integrity.Testing Instructions
To test the changes:
cargo build.cargo test.StorageNodewithout impacting existing functionality.Known Issues / Limitations
Thank you for reviewing this pull request! Your feedback is appreciated.