Skip to content
Snippets Groups Projects
Commit 6a2357df authored by inso's avatar inso
Browse files

Read blockid number

parent 03c00f4f
Branches
Tags
No related merge requests found
...@@ -374,7 +374,7 @@ class Node(QObject): ...@@ -374,7 +374,7 @@ class Node(QObject):
if peering_data['raw'] != self.peer.raw(): if peering_data['raw'] != self.peer.raw():
peer = Peer.from_signed_raw("{0}{1}\n".format(peering_data['raw'], peering_data['signature'])) peer = Peer.from_signed_raw("{0}{1}\n".format(peering_data['raw'], peering_data['signature']))
if peer.blockid.number > self.peer.blockid.number: if BlockId.from_str(peer.blockid).number > BlockId.from_str(self.peer.blockid).number:
self.peer = Peer.from_signed_raw("{0}{1}\n".format(peering_data['raw'], peering_data['signature'])) self.peer = Peer.from_signed_raw("{0}{1}\n".format(peering_data['raw'], peering_data['signature']))
if node_pubkey != self.pubkey: if node_pubkey != self.pubkey:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment