aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_add_connections.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-08-23 10:44:41 +0100
committerJohn Newbery <john@johnnewbery.com>2021-09-22 16:12:16 +0100
commiteaf6be0114a6d7763767da9496907fe8a670ff9e (patch)
tree8c3e399136b9835dfb49face2a0917320aab4498 /test/functional/p2p_add_connections.py
parent0220b834b175dc8c45a2c60213474a72c0ef8193 (diff)
downloadbitcoin-eaf6be0114a6d7763767da9496907fe8a670ff9e.tar.xz
[net processing] Do not request transaction relay from feeler connections
Add a test to verify that feeler connections do not request transaction relay.
Diffstat (limited to 'test/functional/p2p_add_connections.py')
-rwxr-xr-xtest/functional/p2p_add_connections.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/p2p_add_connections.py b/test/functional/p2p_add_connections.py
index 82674befeb..89ed2f857a 100755
--- a/test/functional/p2p_add_connections.py
+++ b/test/functional/p2p_add_connections.py
@@ -106,6 +106,8 @@ class P2PAddConnections(BitcoinTestFramework):
# Verify version message received
assert_equal(feeler_conn.message_count["version"], 1)
+ # Feeler connections do not request tx relay
+ assert_equal(feeler_conn.last_message["version"].relay, 0)
if __name__ == '__main__':
P2PAddConnections().main()