Add checkpoints file for testnet. Check that received headers are after max_checkpoint
This commit is contained in:
parent
de01008992
commit
83da45a7d2
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…
Reference in New Issue
Block a user