Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/comptool.py
Show All 38 Lines | def match(self, other): | ||||
if self.code != other.code: | if self.code != other.code: | ||||
return False | return False | ||||
return other.reason.startswith(self.reason) | return other.reason.startswith(self.reason) | ||||
def __repr__(self): | def __repr__(self): | ||||
return '%i:%s' % (self.code, self.reason or '*') | return '%i:%s' % (self.code, self.reason or '*') | ||||
class TestNode(NodeConnCB): | class TestNode(P2PInterface): | ||||
def __init__(self, block_store, tx_store): | def __init__(self, block_store, tx_store): | ||||
super().__init__() | super().__init__() | ||||
self.bestblockhash = None | self.bestblockhash = None | ||||
self.block_store = block_store | self.block_store = block_store | ||||
self.block_request_map = {} | self.block_request_map = {} | ||||
self.tx_store = tx_store | self.tx_store = tx_store | ||||
self.tx_request_map = {} | self.tx_request_map = {} | ||||
▲ Show 20 Lines • Show All 373 Lines • Show Last 20 Lines |