From b651ef7e1c39a820089695b29d14a07d910a385a Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Wed, 23 Jan 2019 16:43:44 -0500 Subject: [PATCH] submitheader: more directly test missing prev block header --- test/functional/mining_basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/mining_basic.py b/test/functional/mining_basic.py index 713c8beab86..5dafb11ac58 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()