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:22:37 +0000 |
commit | 9b4054cb7af22123c7fcc4989e143606a630b2af (patch) | |
tree | 3556018b69f5e836bf127413544b90a0982e22ba /test/functional/p2p_filter.py | |
parent | 7e158a69104831611462cb555da931331b237c78 (diff) | |
download | bitcoin-9b4054cb7af22123c7fcc4989e143606a630b2af.tar.xz |
[test] Move MY_SUBVERSION 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 move MY_SUBVERSION to p2p.py.
Also rename to P2P_SUBVERSION.
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 2324a3f588..78bdb32cf4 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_SUBVERSION, P2P_VERSION, p2p_lock, ) @@ -223,6 +224,7 @@ class FilterTest(BitcoinTestFramework): # Send version with fRelay=False version_without_fRelay = msg_version() version_without_fRelay.nVersion = P2P_VERSION + version_without_fRelay.strSubVer = P2P_SUBVERSION version_without_fRelay.nRelay = 0 filter_peer_without_nrelay.send_message(version_without_fRelay) filter_peer_without_nrelay.wait_for_verack() |