BIP 0016 QA: Difference between revisions
No edit summary |
No edit summary |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
This page is a Quality Assurance test plan for BIP 16. If you see a test missing, please add it. | This page is a Quality Assurance test plan for [[BIP 16]]. If you see a test missing, please add it. | ||
If you can help test, please edit this page to sign-off on it. | If you can help test, please edit this page to sign-off on it. | ||
Line 21: | Line 21: | ||
Result: transaction is confirmed by network, displays properly in listtransactions. | Result: transaction is confirmed by network, displays properly in listtransactions. | ||
Result: balance is unaffected | Result: balance is unaffected | ||
| Gavin Andresen | | Gavin Andresen; see transactions in [http://blockexplorer.com/testnet/block/000000001bdceba3936f2ea6a55311ac7b6030e327f1960e892620fcde6abf5f testnet block 44989] | ||
|- style="color:green;" | |- style="color:green;" | ||
Line 31: | Line 32: | ||
Result: transaction is confirmed by network, displays properly in listtransactions. | Result: transaction is confirmed by network, displays properly in listtransactions. | ||
Result: bitcoin balance is unaffected. | Result: bitcoin balance is unaffected. | ||
| Gavin Andresen | | Gavin Andresen; see transactions in [http://blockexplorer.com/testnet/block/000000001bdceba3936f2ea6a55311ac7b6030e327f1960e892620fcde6abf5f testnet block 44989] | ||
|- style="color:green;" | |- style="color:green;" | ||
Line 37: | Line 39: | ||
| Test multisig 1-of-3, 2-of-3, 3-of-3<br /> | | Test multisig 1-of-3, 2-of-3, 3-of-3<br /> | ||
Repeat test procedures above, with the other new multisignature transaction types | Repeat test procedures above, with the other new multisignature transaction types | ||
| Gavin Andresen | | Gavin Andresen; see transactions in [http://blockexplorer.com/testnet/block/000000001bdceba3936f2ea6a55311ac7b6030e327f1960e892620fcde6abf5f testnet block 44989] | ||
|- style="color:green;" | |- style="color:green;" | ||
Line 49: | Line 51: | ||
Result: balance for 2 goes down, listtransactions for 2 displays correct result<br /> | Result: balance for 2 goes down, listtransactions for 2 displays correct result<br /> | ||
Result: balance for 1 goes up, listtransactions for 1 displays correct result<br /> | Result: balance for 1 goes up, listtransactions for 1 displays correct result<br /> | ||
| Gavin Andresen | | Gavin Andresen; see transactions in [http://blockexplorer.com/testnet/block/000000001bdceba3936f2ea6a55311ac7b6030e327f1960e892620fcde6abf5f testnet block 44989] | ||
|- style="color:green;" | |- style="color:green;" | ||
Line 60: | Line 63: | ||
Result: transactions are accepted/confirmed by network<br /> | Result: transactions are accepted/confirmed by network<br /> | ||
Result: balance decreases, listtransactions displays correct information<br /> | Result: balance decreases, listtransactions displays correct information<br /> | ||
| Gavin Andresen | | Gavin Andresen; see transactions in [http://blockexplorer.com/testnet/block/000000001bdceba3936f2ea6a55311ac7b6030e327f1960e892620fcde6abf5f testnet block 44989] | ||
|- style="color: | |- style="color:green;" | ||
| | | ✓ | ||
| Run 0.6 Bitcoin-Qt GUI on one of the test wallets from above<br /> | | Run 0.6 Bitcoin-Qt GUI on one of the test wallets from above<br /> | ||
Result: balance and transactions displayed correctly | Result: balance and transactions displayed correctly | ||
| | | Gavin Andresen | ||
|- style="color:orange;" | |- style="color:orange;" | ||
Line 91: | Line 95: | ||
| Gavin Andresen | | Gavin Andresen | ||
|- style="color: | |- style="color:green;" | ||
| | | | ||
| Run BIP-16-capable Bitcoin 0.6.0 on testnet<br /> | | Run BIP-16-capable Bitcoin 0.6.0 on testnet<br /> | ||
Line 97: | Line 101: | ||
Result: blocks accepted, show up on blockexplorer.com/testnet<br /> | Result: blocks accepted, show up on blockexplorer.com/testnet<br /> | ||
Result: mined blocks' coinbase contains /P2SH/ string | Result: mined blocks' coinbase contains /P2SH/ string | ||
| | | Gregory Maxwell; Using p2pool see [https://blockexplorer.com/testnet/rawblock/00000000040367fcb750b6f064db6955b6c7c6218fb625e3dfed6b5c19c97107 testnet block 45400] (and many others, also tested on mainnet) | ||
|- style="color:green;" | |- style="color:green;" | ||
Line 158: | Line 162: | ||
| ✓ | | ✓ | ||
| Create/run 'transaction fuzzer' to stress-test BIP 16 transactions | | Create/run 'transaction fuzzer' to stress-test BIP 16 transactions | ||
| Gavin Andresen (https://github.com/gavinandresen/bitcoin-git/tree/fuzzer , run twice on both testnet-in-a-box and testnet with 100,000 'fuzzed' transactions each test run) | | Gavin Andresen (https://github.com/gavinandresen/bitcoin-git/tree/fuzzer , run twice on both testnet-in-a-box and testnet with 100,000 'fuzzed' transactions each test run) Valid fuzzed transactions appeared in (for example) [http://blockexplorer.com/testnet/block/000000001587c859649cea954e921ba4efd77707fb327dd53e122fd7b89636c4 testnet block 44987] | ||
|- style="color:green;" | |||
| ✓ | |||
| Run Bitcoin 0.6 on main net <br /> | |||
Result: blocks created properly | |||
Result: blocks include /P2SH/ string in their coinbase | |||
| various mining pools | |||
|- style="color:green;" | |||
| ✓ | |||
| Run BIP 16 vinced_mergedmine backport on main net <br /> | |||
Result: blocks created properly | |||
Result: blocks include /P2SH/ string in their coinbase | |||
| (Gavin for slush: after bug fixes, running with no issues)<br /> | |||
|- style="color:green;" | |||
| ✓ | |||
| Test chain-split handling on testnet-in-a-box <br /> | |||
Create two valid hash, invalid signature transactions in two blocks separated in time on a testnet-in-a-box chain<br /> | |||
Run a bitcoind to synchronize with the chain, with -paytoscripthashtime set in between the two blocks<br/> | |||
Result: first transaction/block accepted, second causes a chain split<br/> | |||
Re-run bitcoind with -paytoscripthashtime in the future<br/> | |||
Result: entire chain accepted | |||
| Gavin Andresen: testnet-in-a-box files at: http://www.skypaint.com/bitcoin/bip16chain.tar.gz first half-valid BIP16 transaction at block 2431 (time 1328202835) second at block 2436 (time 1328204241)<br /> | |||
|} | |} |
Latest revision as of 19:50, 9 March 2012
This page is a Quality Assurance test plan for BIP 16. If you see a test missing, please add it. If you can help test, please edit this page to sign-off on it.
Done | Test Procedure | Tested by |
---|---|---|
✓ | Run BIP-16-capable Bitcoin 0.6 on testnet and main net Send coins using GUI, RCP sendtoaddress, and RCP sendmany commands |
Gavin Andresen |
✓ | Test multisig 1-of-1 Run 0.6 bitcoind, get a public key with: ./bitcoind -testnet validateaddress $(./bitcoind -testnet getnewaddress) |
Gavin Andresen; see transactions in testnet block 44989
|
✓ | Test multisig 1-of-2 Run 0.6 bitcoind, get 2 new bitcoin addresses |
Gavin Andresen; see transactions in testnet block 44989
|
✓ | Test multisig 1-of-3, 2-of-3, 3-of-3 Repeat test procedures above, with the other new multisignature transaction types |
Gavin Andresen; see transactions in testnet block 44989 |
✓ | Test multisig send-to-other Repeat test procedures above, but use two bitcoinds, prepared as follows: |
Gavin Andresen; see transactions in testnet block 44989
|
✓ | Test redeeming multisignature transactions Fund a new, empty wallet entirely with multisig transactions |
Gavin Andresen; see transactions in testnet block 44989
|
✓ | Run 0.6 Bitcoin-Qt GUI on one of the test wallets from above Result: balance and transactions displayed correctly |
Gavin Andresen |
✓ | Run BIP-16-capable backport Bitcoin 0.3.19 through 0.5.1 on testnet and main net Send coins using GUI, RCP sendtoaddress, and RCP sendmany commands |
Gavin Andresen (tested 0.3.19, 0.3.24 and 0.5.1) |
✓ | Run BIP-16-capable Bitcoin 0.6.0 on testnet Mine coins using built-in miner |
Gavin Andresen |
✓ | Run BIP-16-capable Bitcoin 0.6.0 on testnet Mine coins using getwork interface |
Gavin Andresen |
Run BIP-16-capable Bitcoin 0.6.0 on testnet Mine coins using getmemorypool interface |
Gregory Maxwell; Using p2pool see testnet block 45400 (and many others, also tested on mainnet) | |
✓ | Run BIP-16-capable Bitcoin 0.3.19 through 0.5.1 backports on testnet Mine coins using built-in miner |
Gavin Andresen (tested all on a testnet-in-a-box) |
✓ | Run BIP-16-capable Bitcoin 3.19 through 0.5.1 backports on testnet Mine coins using getwork interface |
Gavin Andresen (tested all on a testnet-in-a-box) |
✓ | Run BIP-16-capable Bitcoin 0.3.19 through 0.5.1 backports on testnet Mine coins using built-in miner |
Gavin Andresen (tested all on a testnet-in-a-box) |
✓ | Run BIP-16-capable Bitcoin 3.19 through 0.5.1 backports on testnet Mine coins using getwork interface |
Gavin Andresen (tested all on a testnet-in-a-box) |
Run BIP-16-capable Bitcoin 3.19 through 0.5.1 backports on testnet Mine coins using getmemorypool interface |
||
✓ | Create/run unit tests for: multisignature signing/verification |
Gavin Andresen (see test/multisig_tests.cpp, test/script_tests.cpp, test/script_P2SH_tests.cpp, test/sigopcount_tests.cpp in the bitcoin source tree; 'make test_bitcoin' in src/ directory to compile) |
✓ | Create/run 'transaction fuzzer' to stress-test BIP 16 transactions | Gavin Andresen (https://github.com/gavinandresen/bitcoin-git/tree/fuzzer , run twice on both testnet-in-a-box and testnet with 100,000 'fuzzed' transactions each test run) Valid fuzzed transactions appeared in (for example) testnet block 44987 |
✓ | Run Bitcoin 0.6 on main net Result: blocks created properly Result: blocks include /P2SH/ string in their coinbase |
various mining pools |
✓ | Run BIP 16 vinced_mergedmine backport on main net Result: blocks created properly Result: blocks include /P2SH/ string in their coinbase |
(Gavin for slush: after bug fixes, running with no issues) |
✓ | Test chain-split handling on testnet-in-a-box Create two valid hash, invalid signature transactions in two blocks separated in time on a testnet-in-a-box chain |
Gavin Andresen: testnet-in-a-box files at: http://www.skypaint.com/bitcoin/bip16chain.tar.gz first half-valid BIP16 transaction at block 2431 (time 1328202835) second at block 2436 (time 1328204241) |