# regtest-payment result ## Changed - `regtest-payment/regtest_payment.py` — stdlib fixture driving local `bitcoind`/`bitcoin-cli`. - `regtest-payment/tests/test_regtest_payment.py` — 5 deterministic unit tests (regtest guard, amount conversion, spend checks, receipt validation), no Core needed. - `regtest-payment/README.md` — prerequisites, exact commands, expected output. - `regtest-payment/receipt.json` — public receipt from the real run (SYNTHETIC regtest data). ## Commands run 1. Downloaded Bitcoin Core 28.1 x86_64 tarball + SHA256SUMS from bitcoincore.org into `.dl/` (later moved to `test/scratch/dl/` so it is not uploaded); `sha256sum -c` → `OK`. Not committed. 2. `python3 -m unittest discover -s regtest-payment/tests -v` → `Ran 5 tests ... OK`. 3. `python3 regtest-payment/regtest_payment.py --bindir test/scratch/dl/bitcoin-28.1/bin (originally `.dl/...`) --receipt regtest-payment/receipt.json` → exit 0: network regtest, Core /Satoshi:28.1.0/, P2PKH funding prevout 6435b258…dada2:0, spend txid 3da66776a37bc196643da54998b33708e8e89f033e5dced03db78f4f3ce09499, block 6dd8a4f3…8b3994, height 103, depth 1, input 50000000 sats, paid 49999000 sats to one witness_v1_taproot output, fee 1000 sats (matches Core-reported fee), vsize 200. ## How checked The script itself fails unless: chain is regtest before every RPC, datadir fresh (0 blocks), networking inactive with 0 connections, signing complete, testmempoolaccept allowed, the confirmed tx has exactly one input equal to the funded P2PKH prevout and exactly one Taproot output with the expected script hex and amount, and fee equals Core's own fee. Receipt is validated to contain no private-key/wallet markers. Datadir and wallets are deleted at exit. ## Blockers None. Not related to solving puzzle #140; no mainnet activity. ## Repair The bundle-size check failed because 93 MB of downloaded Core binaries were under `.dl/` in the repository. They were moved to `test/scratch/dl/`, which is not uploaded. Nothing in `regtest-payment/` changed.