Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p-leaktests.py
Show All 11 Lines | |||||
from test_framework.mininode import * | from test_framework.mininode import * | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import * | from test_framework.util import * | ||||
banscore = 10 | banscore = 10 | ||||
class CLazyNode(NodeConnCB): | class CLazyNode(P2PInterface): | ||||
def __init__(self): | def __init__(self): | ||||
super().__init__() | super().__init__() | ||||
self.unexpected_msg = False | self.unexpected_msg = False | ||||
self.ever_connected = False | self.ever_connected = False | ||||
def bad_message(self, message): | def bad_message(self, message): | ||||
self.unexpected_msg = True | self.unexpected_msg = True | ||||
self.log.info("should not have received message: %s" % message.command) | self.log.info("should not have received message: %s" % message.command) | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |