test: Makes wtxidrelay support a generic P2PInterface option

Its usage is extended beyond p2p_segwit.py in next commit.
This commit is contained in:
Antoine Riard
2020-10-17 11:20:43 -04:00
parent 9e8d2bd076
commit a07910abcd
3 changed files with 8 additions and 13 deletions

View File

@@ -30,8 +30,8 @@ import time
class TestP2PConn(P2PInterface):
def __init__(self):
super().__init__()
def __init__(self, wtxidrelay=True):
super().__init__(wtxidrelay=wtxidrelay)
self.tx_getdata_count = 0
def on_getdata(self, message):