mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-28 10:12:37 +02:00
test: Makes wtxidrelay support a generic P2PInterface option
Its usage is extended beyond p2p_segwit.py in next commit.
This commit is contained in:
@@ -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