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 committed 2020-11-02 18:29:48 -05:00
1 parent 9e8d2bd076
commit a07910abcd
3 files changed
+8 -13

No files matched your search

+2 -2
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):