qa: Avoid race in p2p_invalid_block by waiting for the block request

Github-Pull: #14700
Rebased-From: fa21568208
This commit is contained in:
MarcoFalke 2018-11-09 15:58:19 -05:00 committed by Anthony Fieroni
parent 56df309b1b
commit 0050a7e979

View file

@ -104,7 +104,7 @@ class InvalidBlockRequestTest(BitcoinTestFramework):
block2_orig.hashMerkleRoot = block2_orig.calc_merkle_root()
block2_orig.rehash()
block2_orig.solve()
node.p2p.send_blocks_and_test([block2_orig], node, success=False, request_block=False, reject_reason=b'bad-txns-inputs-duplicate')
node.p2p.send_blocks_and_test([block2_orig], node, success=False, reject_reason=b'bad-txns-inputs-duplicate')
self.log.info("Test very broken block.")