Merge #13352: qa: Avoid checking reject code for now
faac7a2db4
qa: Avoid checking reject code for now (MarcoFalke)
Pull request description:
The node will often disconnect before sending a reject code. A more
robust solution would be to read from the debug log. See #13006
Tree-SHA512: 1dabf8a43dabbc722f4ffe4fbc1f870090253a66290b2d1a95e7a24e14c6442b493c314480c0314587164eb65e5d468aa9eb5e107ad90bb3ca821a97ea4d373c
This commit is contained in:
commit
e24bf1ce18
1 changed files with 1 additions and 3 deletions
|
@ -21,8 +21,6 @@ from test_framework.util import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
REJECT_INVALID = 16
|
|
||||||
|
|
||||||
class InvalidTxRequestTest(BitcoinTestFramework):
|
class InvalidTxRequestTest(BitcoinTestFramework):
|
||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
self.num_nodes = 1
|
self.num_nodes = 1
|
||||||
|
@ -73,7 +71,7 @@ class InvalidTxRequestTest(BitcoinTestFramework):
|
||||||
# and we get disconnected immediately
|
# and we get disconnected immediately
|
||||||
self.log.info('Test a transaction that is rejected')
|
self.log.info('Test a transaction that is rejected')
|
||||||
tx1 = create_transaction(block1.vtx[0], 0, b'\x64' * 35, 50 * COIN - 12000)
|
tx1 = create_transaction(block1.vtx[0], 0, b'\x64' * 35, 50 * COIN - 12000)
|
||||||
node.p2p.send_txs_and_test([tx1], node, success=False, expect_disconnect=True, reject_code=REJECT_INVALID, reject_reason=b'mandatory-script-verify-flag-failed (Invalid OP_IF construction)')
|
node.p2p.send_txs_and_test([tx1], node, success=False, expect_disconnect=True)
|
||||||
|
|
||||||
# Make two p2p connections to provide the node with orphans
|
# Make two p2p connections to provide the node with orphans
|
||||||
# * p2ps[0] will send valid orphan txs (one with low fee)
|
# * p2ps[0] will send valid orphan txs (one with low fee)
|
||||||
|
|
Loading…
Add table
Reference in a new issue