aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_segwit.py
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2020-04-21 17:02:46 +0200
committerSuhas Daftuar <sdaftuar@gmail.com>2020-07-19 02:10:42 -0400
commitcacd85209e20fc0fd08f86eed23b6ef93484ffcf (patch)
treed4effd3ca0310024448814980c371e882e506584 /test/functional/p2p_segwit.py
parent8d8099e97ab8af2126f6fbd223fbd82c52f2e85e (diff)
downloadbitcoin-cacd85209e20fc0fd08f86eed23b6ef93484ffcf.tar.xz
test: Use wtxid relay generally in functional tests
Diffstat (limited to 'test/functional/p2p_segwit.py')
-rwxr-xr-xtest/functional/p2p_segwit.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/p2p_segwit.py b/test/functional/p2p_segwit.py
index 9286f3e606..9915b844d1 100755
--- a/test/functional/p2p_segwit.py
+++ b/test/functional/p2p_segwit.py
@@ -36,7 +36,6 @@ from test_framework.messages import (
msg_block,
msg_no_witness_tx,
msg_verack,
- msg_wtxidrelay,
ser_uint256,
ser_vector,
sha256,
@@ -161,8 +160,10 @@ class TestP2PConn(P2PInterface):
def on_version(self, message):
if self.wtxidrelay:
- self.send_message(msg_wtxidrelay())
- super().on_version(message)
+ super().on_version(message)
+ else:
+ self.send_message(msg_verack())
+ self.nServices = message.nServices
def on_getdata(self, message):
self.lastgetdata = message.inv