You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor(spv): share ChainState between client and header sync
- Eliminate duplicate ChainState initialization by sharing a single Arc<RwLock<ChainState>> across client and header sync.
- HeaderSyncManagerWithReorg now holds shared state and no longer constructs its own ChainState.
- SequentialSyncManager::new signature updated to accept the shared ChainState and plumb it through.
- Client passes its ChainState to sync manager and removes the client-side header copy path.
- Read/write updated to use RwLock guards; added lightweight cached checkpoint flags in header sync.
This removes the duplicate "Initialized ChainState" logs and unifies state as a single source of truth.
* fix(spv): correct off-by-one in cached absolute height
- total_headers_synced should be base + headers_len - 1 when headers exist, or base/0 when empty.
- Prevents overstating height by 1 in both checkpoint and normal sync paths.
* feat(spv): enhance wallet transaction logging and UTXO management
- Introduced logging for wallet transactions, capturing net balance changes and transaction context (mempool or block).
- Implemented UTXO ingestion for outputs that pay to monitored addresses, ensuring accurate tracking of spendable accounts.
- Removed UTXOs that are spent by transaction inputs, improving wallet state management.
- Added periodic logging of detected transactions and wallet balances to enhance monitoring capabilities.
* fix
---------
Co-authored-by: pasta <pasta@dashboost.org>
0 commit comments