aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_config_args.py
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2023-06-28 10:15:41 +0200
committerVasil Dimov <vd@FreeBSD.org>2023-07-06 17:48:15 +0200
commit20b49460b35268db59f7efcb02736b0e31191a74 (patch)
treeb2a42d868b8eb24d94f9f1b69bfe99bc3346e9b6 /test/functional/feature_config_args.py
parentd9c7c2fd3ec7b0fcae7e0c9423bff6c6799dd67c (diff)
test: remove race in the user-agent reception check
In `add_p2p_connection()` we connect to `bitcoind` from the Python client and check that it has received our version string. This check looked up the last/newest entry from `getpeerinfo` RPC, assuming that it must be the connection we have just opened. But this will not be the case if a new inbound or outbound connection is made to/from `bitcoind` in the meantime. Instead of the last entry in `getpeerinfo`, check all and find the one which corresponds to our connection using our outgoing address:port tuple which is unique. Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Co-authored-by: Jon Atack <jon@atack.com>
Diffstat (limited to 'test/functional/feature_config_args.py')
0 files changed, 0 insertions, 0 deletions