diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-01-23 15:04:35 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-01-23 15:04:35 +0100 |
commit | de85af5cce727981383ac0fe81f635451b331f23 (patch) | |
tree | 108dff76594de054b9378e9f382f228c6f65e7ba /test/functional/test_framework/test_node.py | |
parent | 32b191fb66e644c690c94cbfdae6ddbc754769d7 (diff) | |
download | bitcoin-de85af5cce727981383ac0fe81f635451b331f23.tar.xz |
test: store subversion (user agent) as string in msg_version
Diffstat (limited to 'test/functional/test_framework/test_node.py')
-rwxr-xr-x | test/functional/test_framework/test_node.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index b61d433652..9f2b570913 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -572,7 +572,7 @@ class TestNode(): def num_test_p2p_connections(self): """Return number of test framework p2p connections to the node.""" - return len([peer for peer in self.getpeerinfo() if peer['subver'] == MY_SUBVERSION.decode("utf-8")]) + return len([peer for peer in self.getpeerinfo() if peer['subver'] == MY_SUBVERSION]) def disconnect_p2ps(self): """Close all p2p connections to the node.""" |