fix: do not request beyond tip
This commit is contained in:
parent
feb0f483f5
commit
ad8a6f3eff
|
@ -995,7 +995,7 @@ class Network(util.DaemonThread):
|
||||||
interface.mode = 'backward'
|
interface.mode = 'backward'
|
||||||
interface.bad = height
|
interface.bad = height
|
||||||
interface.bad_header = header
|
interface.bad_header = header
|
||||||
self.request_header(interface, tip)
|
self.request_header(interface, min(tip, height - 1))
|
||||||
else:
|
else:
|
||||||
chain = self.blockchains[0]
|
chain = self.blockchains[0]
|
||||||
if chain.catch_up is None:
|
if chain.catch_up is None:
|
||||||
|
|
Loading…
Reference in New Issue