test: Makes wtxidrelay support a generic P2PInterface option
Its usage is extended beyond p2p_segwit.py in next commit.
This commit is contained in:
1 parent
9e8d2bd076
commit
a07910abcd
3 files changed
+8
-13
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user