mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-19 20:25:18 +01:00
[net processing] Do not request transaction relay from feeler connections
Add a test to verify that feeler connections do not request transaction relay.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user