mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
Add checkpoints file for testnet. Check that received headers are after max_checkpoint
This commit is contained in:
parent
de01008992
commit
83da45a7d2
2 changed files with 4359 additions and 0 deletions
4356
lib/checkpoints_testnet.json
Normal file
4356
lib/checkpoints_testnet.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -973,6 +973,9 @@ class Network(util.DaemonThread):
|
|||
height = header.get('block_height')
|
||||
if not height:
|
||||
return
|
||||
if height < self.max_checkpoint():
|
||||
self.connection_down(interface)
|
||||
return
|
||||
interface.tip_header = header
|
||||
interface.tip = height
|
||||
if interface.mode != 'default':
|
||||
|
|
Loading…
Add table
Reference in a new issue