Add checkpoints file for testnet. Check that received headers are after max_checkpoint
This commit is contained in:
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')
|
height = header.get('block_height')
|
||||||
if not height:
|
if not height:
|
||||||
return
|
return
|
||||||
|
if height < self.max_checkpoint():
|
||||||
|
self.connection_down(interface)
|
||||||
|
return
|
||||||
interface.tip_header = header
|
interface.tip_header = header
|
||||||
interface.tip = height
|
interface.tip = height
|
||||||
if interface.mode != 'default':
|
if interface.mode != 'default':
|
||||||
|
|||||||
Reference in New Issue
Block a user