Clean up code not needed from upstream
This commit is contained in:
parent
99e8292538
commit
bc14f56398
|
@ -96,12 +96,6 @@ class TestNode(NodeConnCB):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise AssertionError("Got pong for unknown ping [%s]" % repr(message))
|
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):
|
def send_inv(self, obj):
|
||||||
mtype = 2 if isinstance(obj, CBlock) else 1
|
mtype = 2 if isinstance(obj, CBlock) else 1
|
||||||
self.conn.send_message(msg_inv([CInv(mtype, obj.sha256)]))
|
self.conn.send_message(msg_inv([CInv(mtype, obj.sha256)]))
|
||||||
|
@ -247,7 +241,6 @@ class TestManager():
|
||||||
if c.cb.bestblockhash != self.connections[0].cb.bestblockhash:
|
if c.cb.bestblockhash != self.connections[0].cb.bestblockhash:
|
||||||
return False
|
return False
|
||||||
elif ((c.cb.bestblockhash == blockhash) != outcome):
|
elif ((c.cb.bestblockhash == blockhash) != outcome):
|
||||||
# print c.cb.bestblockhash, blockhash, outcome
|
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue