Skip to content

Commit

Permalink
submitheader: more directly test missing prev block header
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Jan 24, 2019
1 parent 1e7f741 commit b651ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/mining_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def assert_submitblock(block, result_str_1, result_str_2=None):
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()
Expand Down

0 comments on commit b651ef7

Please sign in to comment.