diff options
| author | Ross Nicoll <[email protected]> | 2018-02-11 21:00:50 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2018-09-19 22:11:47 +0100 |
| commit | 9c3a11b2488f3e01e6763bc1217598a4d1c69bde (patch) | |
| tree | ed6b54c5b71a4543a32968dc5b1d391bfe59dfed /qa/rpc-tests/p2p-fullblocktest.py | |
| parent | Insert Dogecoin testnet merkle tree root value (#1469) (diff) | |
| download | discoin-9c3a11b2488f3e01e6763bc1217598a4d1c69bde.tar.xz discoin-9c3a11b2488f3e01e6763bc1217598a4d1c69bde.zip | |
Clean up RPC tests (#1465)
* Enable full block tests
* Fix invalidblocktest
* Move watch only address funding to immediately before it's used, so node 0 doesn't spend the output before it checks it later.
* Fix `fundrawtransaction` tests and sanitize fee calculation at the same time
* Correct resolution of chain parameters when validating tx inputs, especially from previous coinbase transactions
* Set block versions on full block tests so that the generated blocks are AuxPoW compatible
Diffstat (limited to 'qa/rpc-tests/p2p-fullblocktest.py')
| -rwxr-xr-x | qa/rpc-tests/p2p-fullblocktest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qa/rpc-tests/p2p-fullblocktest.py b/qa/rpc-tests/p2p-fullblocktest.py index a73a0c344..467f6745d 100755 --- a/qa/rpc-tests/p2p-fullblocktest.py +++ b/qa/rpc-tests/p2p-fullblocktest.py @@ -616,6 +616,7 @@ class FullBlockTest(ComparisonTestFramework): height = self.block_heights[self.tip.sha256] + 1 coinbase = create_coinbase(height, self.coinbase_pubkey) b44 = CBlock() + b44.nVersion = 0x620004 b44.nTime = self.tip.nTime + 1 b44.hashPrevBlock = self.tip.sha256 b44.nBits = 0x207fffff @@ -630,6 +631,7 @@ class FullBlockTest(ComparisonTestFramework): # A block with a non-coinbase as the first tx non_coinbase = create_tx(out[15].tx, out[15].n, 1) b45 = CBlock() + b44.nVersion = 0x620004 b45.nTime = self.tip.nTime + 1 b45.hashPrevBlock = self.tip.sha256 b45.nBits = 0x207fffff @@ -645,6 +647,7 @@ class FullBlockTest(ComparisonTestFramework): # A block with no txns tip(44) b46 = CBlock() + b44.nVersion = 0x620004 b46.nTime = b44.nTime+1 b46.hashPrevBlock = b44.sha256 b46.nBits = 0x207fffff |