aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_permissions.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-01-22 13:02:24 -0800
committerMarcoFalke <falke.marco@gmail.com>2020-02-11 07:44:12 -0800
commitfacb71576cd4d2e90fd03e09d29b42fa3d730e8c (patch)
tree4e4b198deccbfde7de7efb99010f27cd6ed6f44f /test/functional/p2p_permissions.py
parentab7915f804b776c68ae017d55506c66af533f5a0 (diff)
downloadbitcoin-facb71576cd4d2e90fd03e09d29b42fa3d730e8c.tar.xz
net: Remove forcerelay of rejected txs
Diffstat (limited to 'test/functional/p2p_permissions.py')
-rwxr-xr-xtest/functional/p2p_permissions.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/p2p_permissions.py b/test/functional/p2p_permissions.py
index 93e2957fd0..3a7bf4bfc3 100755
--- a/test/functional/p2p_permissions.py
+++ b/test/functional/p2p_permissions.py
@@ -132,6 +132,16 @@ class P2PPermissionsTests(BitcoinTestFramework):
p2p_rebroadcast_wallet.send_txs_and_test([tx], self.nodes[1])
wait_until(lambda: txid in self.nodes[0].getrawmempool())
+ self.log.debug("Check that node[1] will not send an invalid tx to node[0]")
+ tx.vout[0].nValue += 1
+ txid = tx.rehash()
+ p2p_rebroadcast_wallet.send_txs_and_test(
+ [tx],
+ self.nodes[1],
+ success=False,
+ reject_reason='Not relaying non-mempool transaction {} from whitelisted peer=0'.format(txid),
+ )
+
def checkpermission(self, args, expectedPermissions, whitelisted):
self.restart_node(1, args)
connect_nodes(self.nodes[0], 1)