aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_leak_tx.py
diff options
context:
space:
mode:
authorkouloumos <kouloumosa@gmail.com>2023-01-13 12:00:53 +0200
committerkouloumos <kouloumosa@gmail.com>2023-01-16 19:14:11 +0200
commit42029a7fd42e93426bdfb40d1918d739d20962af (patch)
treebee2352328ba671e6e65fefdd9b4c69b2e030b26 /test/functional/p2p_leak_tx.py
parent0377d6bb420b9a2fb79af0ebe088d2b20ec808a5 (diff)
downloadbitcoin-42029a7fd42e93426bdfb40d1918d739d20962af.tar.xz
test: remove redundant blocks generation logic
those tests already have enough mature utxos from the pre-mined chain.
Diffstat (limited to 'test/functional/p2p_leak_tx.py')
-rwxr-xr-xtest/functional/p2p_leak_tx.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/functional/p2p_leak_tx.py b/test/functional/p2p_leak_tx.py
index 4c064b359e..6283dd89ac 100755
--- a/test/functional/p2p_leak_tx.py
+++ b/test/functional/p2p_leak_tx.py
@@ -4,7 +4,6 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test that we don't leak txs to inbound peers that we haven't yet announced to"""
-from test_framework.blocktools import COINBASE_MATURITY
from test_framework.messages import msg_getdata, CInv, MSG_TX
from test_framework.p2p import p2p_lock, P2PDataStore
from test_framework.test_framework import BitcoinTestFramework
@@ -26,9 +25,6 @@ class P2PLeakTxTest(BitcoinTestFramework):
def run_test(self):
gen_node = self.nodes[0] # The block and tx generating node
miniwallet = MiniWallet(gen_node)
- # Add enough mature utxos to the wallet, so that all txs spend confirmed coins
- self.generate(miniwallet, 1)
- self.generate(gen_node, COINBASE_MATURITY)
inbound_peer = self.nodes[0].add_p2p_connection(P2PNode()) # An "attacking" inbound peer