aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_tx_download.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-04-13 21:39:19 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-04-13 21:38:29 -0400
commitfa4c29bc1d2425f861845bae4f3816d9817e622a (patch)
treef4ee69845cafc999f6a8ab5ab5d1c3c8007fe17d /test/functional/p2p_tx_download.py
parent6ef45bc9688412da9e13218e08f802125bf589c0 (diff)
downloadbitcoin-fa4c29bc1d2425f861845bae4f3816d9817e622a.tar.xz
test: Add various low-level p2p tests
Diffstat (limited to 'test/functional/p2p_tx_download.py')
-rwxr-xr-xtest/functional/p2p_tx_download.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/p2p_tx_download.py b/test/functional/p2p_tx_download.py
index b56dc994e7..1d74c757d7 100755
--- a/test/functional/p2p_tx_download.py
+++ b/test/functional/p2p_tx_download.py
@@ -152,6 +152,10 @@ class TxDownloadTest(BitcoinTestFramework):
wait_until(lambda: p.tx_getdata_count == MAX_GETDATA_IN_FLIGHT + 2)
self.nodes[0].setmocktime(0)
+ def test_spurious_notfound(self):
+ self.log.info('Check that spurious notfound is ignored')
+ self.nodes[0].p2ps[0].send_message(msg_notfound(vec=[CInv(1, 1)]))
+
def run_test(self):
# Setup the p2p connections
self.peers = []
@@ -161,6 +165,8 @@ class TxDownloadTest(BitcoinTestFramework):
self.log.info("Nodes are setup with {} incoming connections each".format(NUM_INBOUND))
+ self.test_spurious_notfound()
+
# Test the in-flight max first, because we want no transactions in
# flight ahead of this test.
self.test_in_flight_max()