Clean up code not needed from upstream

This commit is contained in:
mdr0id 2019-12-05 15:50:30 -08:00
parent 99e8292538
commit bc14f56398
1 changed files with 0 additions and 7 deletions

View File

@ -95,12 +95,6 @@ class TestNode(NodeConnCB):
del self.pingMap[message.nonce]
except KeyError:
raise AssertionError("Got pong for unknown ping [%s]" % repr(message))
def on_reject(self, conn, message):
if message.message == b'tx':
self.tx_reject_map[message.data] = RejectResult(message.code, message.reason)
if message.message == b'block':
self.block_reject_map[message.data] = RejectResult(message.code, message.reason)
def send_inv(self, obj):
mtype = 2 if isinstance(obj, CBlock) else 1
@ -247,7 +241,6 @@ class TestManager():
if c.cb.bestblockhash != self.connections[0].cb.bestblockhash:
return False
elif ((c.cb.bestblockhash == blockhash) != outcome):
# print c.cb.bestblockhash, blockhash, outcome
return False
return True