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
committerJohn Newbery <john@johnnewbery.com>2020-09-24 13:24:10 +0100
commit22effa51a77a8b8c72ba3525cb08dd0cf8464715 (patch)
tree4a7e7fd330c83d3d28694e7b9cf01a6295a05db0 /test/functional/p2p_segwit.py
parente4816819630d1e94469ca5499361e0cd2c9ac7c2 (diff)
downloadbitcoin-22effa51a77a8b8c72ba3525cb08dd0cf8464715.tar.xz
test: Use wtxid relay generally in functional tests
Diffstat (limited to 'test/functional/p2p_segwit.py')
-rwxr-xr-xtest/functional/p2p_segwit.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/functional/p2p_segwit.py b/test/functional/p2p_segwit.py
index 0799fb5189..40925ae8c9 100755
--- a/test/functional/p2p_segwit.py
+++ b/test/functional/p2p_segwit.py
@@ -34,7 +34,7 @@ from test_framework.messages import (
msg_tx,
msg_block,
msg_no_witness_tx,
- msg_wtxidrelay,
+ msg_verack,
ser_uint256,
ser_vector,
sha256,
@@ -159,8 +159,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