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
913d526 Test loadtxoutset RPC method (Abeeujah)
Pull request description:
Testing loadtxoutset on regtest requires a deterministic chain that produces a state matching the hardcoded assumeutxo entry in Bitcoin Core’s [chainparams](https://github.com/bitcoin/bitcoin/blob/2b6af628b140dc9d415733e5dc1577f3e54819af/src/kernel/chainparams.cpp#L622-L626) . Without this alignment, a standard dump-and-load cycle on a random regtest chain will always be rejected.
Replicate Bitcoin Core's C++ TestChain100Setup deterministic chain (mocktime 1598887952, P2PK coinbase to compressed pubkey of private key 0x01, 110 blocks) so the resulting block hash matches the assumeutxo entry. Dump the UTXO set from the miner node, feed headers to a fresh node via submitheader, then load the snapshot and verify the model.
Wire the load_tx_out_set client macro into v27 through v30, which were missing the call.
closes#313
ACKs for top commit:
tcharding:
ACK 913d526
Tree-SHA512: 77271257d4fd4f889b29b387dcaf314970715f45d7fc15da66c32d07ae71d66322f5d767ef5dddff247c6a669b099cb2b8dd543d0c7af4cfab178542d251c50e
0 commit comments