diff options
author | John Newbery <john@johnnewbery.com> | 2020-11-28 11:41:25 +0000 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-02-17 09:29:41 +0000 |
commit | 9ce4c3c4c1682032500c97af2d6383897b87c413 (patch) | |
tree | 91948ee41870498512f3f3c13636140d76b9589b /test/functional/p2p_filter.py | |
parent | 010542614dbebba5f5ad6a58c0554930e9e214fc (diff) | |
download | bitcoin-9ce4c3c4c1682032500c97af2d6383897b87c413.tar.xz |
[test] Add P2P_SERVICES to p2p.py
The messages.py module should contain code and helpers for
[de]serializing p2p messages. Specific usage of those messages should
be in p2p.py. Therefore specify the nServices value in the calling code,
not in the messages.py module.
Diffstat (limited to 'test/functional/p2p_filter.py')
-rwxr-xr-x | test/functional/p2p_filter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/p2p_filter.py b/test/functional/p2p_filter.py index 4df3dd6a21..8f64419138 100755 --- a/test/functional/p2p_filter.py +++ b/test/functional/p2p_filter.py @@ -21,6 +21,7 @@ from test_framework.messages import ( ) from test_framework.p2p import ( P2PInterface, + P2P_SERVICES, P2P_SUBVERSION, P2P_VERSION, p2p_lock, @@ -225,6 +226,7 @@ class FilterTest(BitcoinTestFramework): version_without_fRelay = msg_version() version_without_fRelay.nVersion = P2P_VERSION version_without_fRelay.strSubVer = P2P_SUBVERSION + version_without_fRelay.nServices = P2P_SERVICES version_without_fRelay.relay = 0 filter_peer_without_nrelay.send_message(version_without_fRelay) filter_peer_without_nrelay.wait_for_verack() |