Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p-feefilter.py
Show All 28 Lines | def allInvsMatch(invsExpected, testnode): | ||||
return False | return False | ||||
class TestNode(NodeConnCB): | class TestNode(NodeConnCB): | ||||
def __init__(self): | def __init__(self): | ||||
super().__init__() | super().__init__() | ||||
self.txinvs = [] | self.txinvs = [] | ||||
def on_inv(self, conn, message): | def on_inv(self, message): | ||||
for i in message.inv: | for i in message.inv: | ||||
if (i.type == 1): | if (i.type == 1): | ||||
self.txinvs.append(hashToHex(i.hash)) | self.txinvs.append(hashToHex(i.hash)) | ||||
def clear_invs(self): | def clear_invs(self): | ||||
with mininode_lock: | with mininode_lock: | ||||
self.txinvs = [] | self.txinvs = [] | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |