aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_tx_download.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-09-16 09:22:49 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-09-17 13:08:17 -0400
commitfaaee1e39a91b3f603881655d3980c29af09852b (patch)
tree902cf7b6a2756ee81681e8a2c6b6084ee6e24b1f /test/functional/p2p_tx_download.py
parent1111bb91f517838e5b9f778bf6b5a9c8d561e857 (diff)
downloadbitcoin-faaee1e39a91b3f603881655d3980c29af09852b.tar.xz
test: Use connect_nodes when connecting nodes in the test_framework
Diffstat (limited to 'test/functional/p2p_tx_download.py')
-rwxr-xr-xtest/functional/p2p_tx_download.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/p2p_tx_download.py b/test/functional/p2p_tx_download.py
index 19d78ff303..aada04f66f 100755
--- a/test/functional/p2p_tx_download.py
+++ b/test/functional/p2p_tx_download.py
@@ -121,6 +121,7 @@ class TxDownloadTest(BitcoinTestFramework):
# peer, plus
# * the first time it is re-requested from the outbound peer, plus
# * 2 seconds to avoid races
+ assert self.nodes[1].getpeerinfo()[0]['inbound'] == False
timeout = 2 + (MAX_GETDATA_RANDOM_DELAY + INBOUND_PEER_TX_DELAY) + (
GETDATA_TX_INTERVAL + MAX_GETDATA_RANDOM_DELAY)
self.log.info("Tx should be received at node 1 after {} seconds".format(timeout))