aboutsummaryrefslogtreecommitdiff
path: root/test/functional/mining_basic.py
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2019-01-23 16:43:44 -0500
committerGregory Sanders <gsanders87@gmail.com>2019-01-24 09:48:34 -0500
commitb651ef7e1c39a820089695b29d14a07d910a385a (patch)
treeb61640f5b3ce04a7106763881adce16c661a50aa /test/functional/mining_basic.py
parent1e7f7417457a811f1e69a118df4c6e14033ddb55 (diff)
submitheader: more directly test missing prev block header
Diffstat (limited to 'test/functional/mining_basic.py')
-rwxr-xr-xtest/functional/mining_basic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/mining_basic.py b/test/functional/mining_basic.py
index 713c8beab8..5dafb11ac5 100755
--- a/test/functional/mining_basic.py
+++ b/test/functional/mining_basic.py
@@ -166,7 +166,7 @@ class MiningTest(BitcoinTestFramework):
self.log.info('submitheader tests')
assert_raises_rpc_error(-22, 'Block header decode failed', lambda: node.submitheader(hexdata='xx' * BLOCK_HEADER_SIZE))
assert_raises_rpc_error(-22, 'Block header decode failed', lambda: node.submitheader(hexdata='ff' * (BLOCK_HEADER_SIZE-2)))
- assert_raises_rpc_error(-25, 'Must submit previous header', lambda: node.submitheader(hexdata='ff' * BLOCK_HEADER_SIZE))
+ assert_raises_rpc_error(-25, 'Must submit previous header', lambda: node.submitheader(hexdata=super(CBlock, bad_block).serialize().hex()))
block.nTime += 1
block.solve()