Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wallet apply and revert logic to coreutils #22

Merged
merged 6 commits into from Feb 16, 2024

Conversation

n8maninger
Copy link
Member

This adds subscriber logic to the wallet package. Instead of duplicating the single address transaction and utxo logic, stores can implement the transaction interface and call wallet.ApplyChainUpdates and wallet.RevertChainUpdate from their consensus subscriber.

wallet/wallet.go Outdated Show resolved Hide resolved
Copy link
Member

@ChrisSchinnerl ChrisSchinnerl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The interface looks good to me.

testutil/wallet.go Outdated Show resolved Hide resolved
peterjan
peterjan previously approved these changes Feb 15, 2024
Copy link
Member

@peterjan peterjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

testutil/wallet.go Outdated Show resolved Hide resolved
ChrisSchinnerl
ChrisSchinnerl previously approved these changes Feb 15, 2024
testutil/wallet.go Outdated Show resolved Hide resolved
wallet/update.go Outdated Show resolved Hide resolved
@n8maninger n8maninger marked this pull request as ready for review February 15, 2024 22:33
@ChrisSchinnerl ChrisSchinnerl merged commit 32abe2b into master Feb 16, 2024
6 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the nate/wallet-updater branch February 16, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants