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

Bundle ledger transaction and write guard into a single object #4653

Merged

Conversation

pwojcikdev
Copy link
Contributor

This change ensures that ledger write transactions and corresponding write queue guards are always acquired and released together. This in turn allows implementing .refresh_if_needed () function that handles both transaction and guard, which simplifies bounding of write transaction lifetimes.

@pwojcikdev pwojcikdev force-pushed the transaction-write-queue-wrapper branch from 8a70ba7 to 6bee60f Compare June 19, 2024 12:25
@pwojcikdev pwojcikdev merged commit 3f7140e into nanocurrency:develop Jun 23, 2024
25 of 28 checks passed
@pwojcikdev pwojcikdev deleted the transaction-write-queue-wrapper branch June 23, 2024 14:14
gr0vity-dev pushed a commit to gr0vity-dev/nano-node that referenced this pull request Jun 26, 2024
…urrency#4653)

* Bundle transaction and write guard in a single object

* Add tests
@qwahzi qwahzi added this to the V27 milestone Jul 2, 2024
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

3 participants