Small fix for checking block headers @csulmone

This commit is contained in:
ThomasV 2018-01-08 00:50:15 +01:00 committed by Jon Layton
parent c6be316e10
commit 066ce9679b
1 changed files with 1 additions and 1 deletions

View File

@ -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