Skip to content

Conversation

@ltardivo
Copy link
Collaborator

@ltardivo ltardivo commented Aug 20, 2024

This PR introduces blockHash to the Input and Output tables to track confirmed and unconfirmed balances. Additionally, it handles block reorgs while maintaining the parallel architecture of the syncing process through new database tables: Block, Orphan, TxStatus, and BlockStatus.

API Changes:

  • Computer.getBalance() now returns an object {confirmed, unconfirmed, balance}.

Infrastructure Changes:

New sync service added to the regtest docker-compose file.

This PR fixes #239

@ClemensLey
Copy link
Contributor

Great!

@ClemensLey ClemensLey merged commit 8824d2a into main Aug 20, 2024
@ClemensLey ClemensLey deleted the feat/unconfirmedBalance2 branch August 20, 2024 22:26
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.

Deal with block reorgs

3 participants