Skip to content

Commit

Permalink
timestamp p2protocol fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdtf committed Oct 17, 2018
1 parent ccb3f9b commit 7c96072
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2pool/p2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ def handle_addrme(self, port):
])
def handle_addrs(self, addrs):
for addr_record in addrs:
self.node.got_addr((addr_record['address']['address'], addr_record['address']['port']), addr_record['address']['services'], min(int(time.time()), addr_record['timestamp']))
# navid
self.node.got_addr((addr_record['address']['address'], addr_record['address']['port']), addr_record['address']['services'], min(int(time.time()), addr_record['address']['time']))
if random.random() < .8 and self.node.peers:
random.choice(self.node.peers.values()).send_addrs(addrs=[addr_record])

Expand Down

0 comments on commit 7c96072

Please sign in to comment.