def handle_inv(self, invs):
for inv in invs:
#print "INV", item['type'], hex(item['hash'])
- self.send_getdata(invs=[inv])
+ self.send_getdata(requests=[inv])
def handle_addr(self, addrs):
for addr in addrs:
class ProtocolInv(Protocol):
inv = None
- def handle_getdata(self, invs):
+ def handle_getdata(self, requests):
if self.inv is None: self.inv = {}
- for inv in invs:
+ for inv in requests:
type_, hash_ = inv['type'], inv['hash']
if (type_, hash_) in self.inv:
print "bitcoind requested %s %x, sent" % (type_, hash_)
self.other_mode_var = util.Variable(mode)
if nonce == self.node.nonce:
- print "Detected connection to self, disconnecting"
+ #print "Detected connection to self, disconnecting"
self.transport.loseConnection()
return