diff options
| author | Dagur Valberg Johannsson <[email protected]> | 2016-10-09 15:47:55 -0400 |
|---|---|---|
| committer | Dagur Valberg Johannsson <[email protected]> | 2016-10-10 13:37:16 -0400 |
| commit | 4cdece40419bcc97345357f9268e03b0aff400b5 (patch) | |
| tree | a98dbfe9bc3004a618233ce1f575404d2b9fe2dc | |
| parent | Merge #8821: [qt] sync-overlay: Don't block during reindex (diff) | |
| download | discoin-4cdece40419bcc97345357f9268e03b0aff400b5.tar.xz discoin-4cdece40419bcc97345357f9268e03b0aff400b5.zip | |
[qa] Fix compact block shortids for a test case
| -rwxr-xr-x | qa/rpc-tests/p2p-compactblocks.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qa/rpc-tests/p2p-compactblocks.py b/qa/rpc-tests/p2p-compactblocks.py index d91e10d77..97e7190d1 100755 --- a/qa/rpc-tests/p2p-compactblocks.py +++ b/qa/rpc-tests/p2p-compactblocks.py @@ -382,7 +382,9 @@ class CompactBlocksTest(BitcoinTestFramework): 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. |