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

Move node::receive_confirmed to wallets::receive_confirmed #4557

Merged

Conversation

clemahieu
Copy link
Contributor

This is inherently a wallet operation so it's more appropriate to be on the wallets class.

This also breaks a direct dependency/cycle from block processing to the wallet operations.

This also breaks a lock order inversion where a ledger transaction mutex is held while acquiring the wallet mutexes while most operations do it in the reverse order.

pwojcikdev
pwojcikdev previously approved these changes Apr 13, 2024
nano/node/wallet.cpp Outdated Show resolved Hide resolved
This is inherently a wallet operation so it's more appropriate to be on the wallets class.
This also breaks a direct dependency/cycle from block processing to the wallet operations.
This also breaks a lock order inversion where a ledger transaction mutex is held while acquiring the wallet mutexes while most operations do it in the reverse order.
@clemahieu clemahieu force-pushed the move_node_receive_confirmed branch from a680b2b to 1ad688b Compare April 14, 2024 09:37
@clemahieu clemahieu merged commit 6f8e1d3 into nanocurrency:develop Apr 14, 2024
24 of 26 checks passed
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.

2 participants