bitcoin/test/functional/test_framework
MarcoFalke 9635760ce8
Merge bitcoin/bitcoin#22777: net processing: don't request tx relay on feeler connections
eaf6be0114 [net processing] Do not request transaction relay from feeler connections (John Newbery)
0220b834b1 [test] Add testing for outbound feeler connections (John Newbery)

Pull request description:

  Feelers are short-lived connections used to test the viability of peers. The bitcoind node will periodically open feeler connections to addresses in its addrman, wait for a `version` message from the peer, and then close the connection.

  Currently, we set `fRelay` to `1` in the `version` message for feeler connections, indicating that we want the peer to relay transactions to us. However, we close the connection immediately on receipt of the `version` message, and so never process any incoming transaction announcements. This PR changes that behaviour to instead set `fRelay` to `0` indicating that we do not wish to receive transaction announcements from the peer.

  This PR also extends the `addconnection` RPC to allow creating outbound feeler connections from the node to the test framework, and a test to verify that the node sets `fRelay` to `0` in the `version` message to feeler connections.

ACKs for top commit:
  naumenkogs:
    ACK eaf6be0114
  MarcoFalke:
    review ACK eaf6be0114 🏃

Tree-SHA512: 1c56837dbd0a396fe404a5e39f7459864d15f666664d6b35ad109628b13158e077e417e586bf48946a23bd5cbe63716cb4bf22cdf8781b74dfce6047b87b465a
2021-12-14 17:57:10 +01:00
..
__init__.py
address.py
authproxy.py
bdb.py
bip340_test_vectors.csv
blocktools.py Remove GetAdjustedTime from init.cpp 2021-11-30 17:19:49 +01:00
coverage.py
descriptors.py
key.py
messages.py test: Replace hashlib.new with named constructor 2021-12-09 14:36:06 +01:00
muhash.py
netutil.py
p2p.py Merge bitcoin/bitcoin#21327: net_processing: ignore transactions while in IBD 2021-11-30 19:09:15 +01:00
ripemd160.py Add pure Python RIPEMD-160 2021-12-08 14:29:34 -05:00
script_util.py
script.py Swap out hashlib.ripemd160 for own implementation 2021-12-08 14:29:41 -05:00
segwit_addr.py
siphash.py
socks5.py
test_framework.py test: feature_rbf.py: check specified wallet type availability 2021-12-08 19:57:43 +01:00
test_node.py Merge bitcoin/bitcoin#22777: net processing: don't request tx relay on feeler connections 2021-12-14 17:57:10 +01:00
test_shell.py
util.py Merge bitcoin/bitcoin#19499: p2p: Make timeout mockable and type safe, speed up test 2021-12-10 10:02:12 +01:00
wallet_util.py
wallet.py