fix: do not request beyond tip

This commit is contained in:
ThomasV 2017-07-19 17:33:05 +02:00
parent feb0f483f5
commit ad8a6f3eff
1 changed files with 1 additions and 1 deletions

View File

@ -995,7 +995,7 @@ class Network(util.DaemonThread):
interface.mode = 'backward'
interface.bad = height
interface.bad_header = header
self.request_header(interface, tip)
self.request_header(interface, min(tip, height - 1))
else:
chain = self.blockchains[0]
if chain.catch_up is None: