Small fix for checking block headers @csulmone
This commit is contained in:
parent
c6be316e10
commit
066ce9679b
|
@ -802,7 +802,7 @@ class Network(util.DaemonThread):
|
|||
self.connection_down(interface.server)
|
||||
return
|
||||
height = header.get('block_height')
|
||||
if interface.request != height:
|
||||
if int(interface.request != height):
|
||||
interface.print_error("unsolicited header",interface.request, height)
|
||||
self.connection_down(interface.server)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue