Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-p2p-compactblocks.py
Show All 24 Lines | |||||
class PreviousSpendableOutput(): | class PreviousSpendableOutput(): | ||||
def __init__(self, tx=CTransaction(), n=-1): | def __init__(self, tx=CTransaction(), n=-1): | ||||
self.tx = tx | self.tx = tx | ||||
self.n = n # the output we're spending | self.n = n # the output we're spending | ||||
# TestNode: A peer we use to send messages to bitcoind, and store responses. | # TestNode: A peer we use to send messages to bitcoind, and store responses. | ||||
class TestNode(NodeConnCB): | class TestNode(P2PInterface): | ||||
def __init__(self): | def __init__(self): | ||||
self.last_sendcmpct = None | self.last_sendcmpct = None | ||||
self.last_cmpctblock = None | self.last_cmpctblock = None | ||||
self.last_getheaders = None | self.last_getheaders = None | ||||
self.last_headers = None | self.last_headers = None | ||||
super().__init__() | super().__init__() | ||||
▲ Show 20 Lines • Show All 317 Lines • Show Last 20 Lines |