diff --git a/test/functional/p2p_invalid_tx.py b/test/functional/p2p_invalid_tx.py --- a/test/functional/p2p_invalid_tx.py +++ b/test/functional/p2p_invalid_tx.py @@ -169,16 +169,6 @@ wait_until(lambda: 1 == len(node.getpeerinfo()), timeout=12) assert_equal(expected_mempool, set(node.getrawmempool())) - # restart node with sending BIP61 messages disabled, check that it - # disconnects without sending the reject message - self.log.info( - 'Test a transaction that is rejected, with BIP61 disabled') - self.restart_node( - 0, self.extra_args[0] + ['-enablebip61=0', '-persistmempool=0']) - self.reconnect_p2p(num_connections=1) - node.p2p.send_txs_and_test( - [tx1], node, success=False, reject_reason="{} from peer=0 was not accepted: mandatory-script-verify-flag-failed (Invalid OP_IF construction) (code 16)".format(tx1.hash), expect_disconnect=True) - if __name__ == '__main__': InvalidTxRequestTest().main()