Skip to content

BFG: save db records in processBitcoinBlock in a single tx#456

Merged
ClaytonNorthey92 merged 1 commit intomainfrom
clayton/save-btc-in-tx
Mar 24, 2025
Merged

BFG: save db records in processBitcoinBlock in a single tx#456
ClaytonNorthey92 merged 1 commit intomainfrom
clayton/save-btc-in-tx

Conversation

@ClaytonNorthey92
Copy link
Copy Markdown
Contributor

@ClaytonNorthey92 ClaytonNorthey92 commented Mar 24, 2025

Summary
when saving records from processing bitcoin blocks, prior they were not done atomically (in a db tx). this means that if one failed others may succeed. this change makes it all-or-nothing; we either save everything we want from a btc block or we don't, so we don't half-save.

Changes
see summary

@github-actions github-actions bot added the area: bfg This is a change to BFG (Bitcoin Finality Governor) label Mar 24, 2025
when saving records from processing bitcoin blocks, prior they were not done atomically (in a db tx).  this means that if one failed others may succeed.  this change makes it all-or-nothing; we either save everything we want from a btc block or we don't, so we don't half-save.
@ClaytonNorthey92 ClaytonNorthey92 changed the title save btc block processing in a tx BFG: save db records in processBitcoinBlock in a single tx Mar 24, 2025
@ClaytonNorthey92 ClaytonNorthey92 added size: L This change is large (+/- <500) type: refactor This refactors existing functionality labels Mar 24, 2025
@ClaytonNorthey92 ClaytonNorthey92 marked this pull request as ready for review March 24, 2025 13:54
@ClaytonNorthey92 ClaytonNorthey92 requested a review from a team as a code owner March 24, 2025 13:54
Copy link
Copy Markdown
Contributor

@AL-CT AL-CT left a comment

Choose a reason for hiding this comment

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

LGTM

@ClaytonNorthey92 ClaytonNorthey92 merged commit 7bb42ef into main Mar 24, 2025
9 checks passed
@ClaytonNorthey92 ClaytonNorthey92 deleted the clayton/save-btc-in-tx branch March 24, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: bfg This is a change to BFG (Bitcoin Finality Governor) size: L This change is large (+/- <500) type: refactor This refactors existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants