Network and Address-Family Reconciliation in a Local Bitcoin Engine
Research status: Engineering philosophy based on the stated product design and reported laboratory results. New procedures are illustrative; no new live execution is claimed.
Four logical wallet views
The product supports two networks and two wallet families. A client therefore needs four distinct logical views: mainnet SegWit, mainnet Taproot, testnet SegWit and testnet Taproot. This is an application model, not a claim that the engine uses four physical databases or independent seeds.
Each view should record its network, family, observation time, chain height and relevant balance categories. A stale view is not equivalent to a zero balance. A transaction observed in a mempool is not equivalent to a confirmed and spendable output. A confirmation can also be reversed by a chain reorganization.
Evidence from the HTLC laboratory
In the reported first Bitcoin HTLC round, an external redemption was included in a block while the engine transaction-status query returned unknown. Subsequent wallet reconciliation recognized the 8,500 sat Taproot output as confirmed and unreserved. This demonstrates why a transaction-tracking endpoint and a wallet-state endpoint should not be treated as interchangeable evidence.
The second round reported a Taproot confirmed spendable balance of 28,700 sat after matching another 8,500 sat redemption. The refund round reported an 8,500 sat SegWit output and a confirmed spendable balance of 107,937 sat. These are historical laboratory observations, not current balances.
Reconciliation contract for clients
select network and wallet family
check node health and synchronization
query balance and UTXOs
match expected txid, vout, amount and script
record confirmation and reservation state
repeat if the chain tip or wallet state changesThis procedure is illustrative. Do not interpret an unknown status as proof of failure or automatically retry a spend. Inspect the chain and reconcile the wallet first. A client should distinguish an unavailable response, warming state and a genuine zero balance.
Proposed acceptance criteria
Restore the same authorized identity in an isolated test environment and compare expected outputs for each testnet family. Record any missing outputs or synchronization delays. A successful restoration must be judged by the relevant spendable outputs, not merely by matching aggregate balances.
Primary references and related research
- [Testnet network compatibility](/docs/wab-agent-testnet-network-compatibility)
- [Flying Wallet architecture](/docs/wab-philosophy-flying-wallet-architecture)
