mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 18:25:21 +00:00
fix: request chunk at next_height
This commit is contained in:
parent
1b29945c6d
commit
63f14f6ab2
1 changed files with 2 additions and 3 deletions
|
@ -847,9 +847,8 @@ class Network(util.DaemonThread):
|
|||
if interface.mode != 'default':
|
||||
self.request_header(interface, next_height)
|
||||
else:
|
||||
local_height = self.get_local_height()
|
||||
if interface.tip > local_height + 50:
|
||||
self.request_chunk(interface, (local_height + 1) // 2016)
|
||||
if interface.tip > next_height + 50:
|
||||
self.request_chunk(interface, next_height // 2016)
|
||||
else:
|
||||
self.request_header(interface, next_height)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue