Skip to content

Commit

Permalink
Merge bitcoin#8904: [qa] Fix compact block shortids for a test case
Browse files Browse the repository at this point in the history
4cdece4 [qa] Fix compact block shortids for a test case (Dagur Valberg Johannsson)
  • Loading branch information
laanwj committed Oct 13, 2016
2 parents 8d46429 + 4cdece4 commit e2a17e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qa/rpc-tests/p2p-compactblocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ def test_compactblock_requests(self, node, test_node):
comp_block = HeaderAndShortIDs()
comp_block.header = CBlockHeader(block)
comp_block.nonce = 0
comp_block.shortids = [1] # this is useless, and wrong
[k0, k1] = comp_block.get_siphash_keys()
comp_block.shortids = [
calculate_shortid(k0, k1, block.vtx[0].sha256) ]
test_node.send_and_ping(msg_cmpctblock(comp_block.to_p2p()))
assert_equal(int(node.getbestblockhash(), 16), block.hashPrevBlock)
# Expect a getblocktxn message.
Expand Down

0 comments on commit e2a17e4

Please sign in to comment.