Add checkpoints file for testnet. Check that received headers are after max_checkpoint

This commit is contained in:
ThomasV 2017-12-13 14:22:31 +01:00
parent de01008992
commit 83da45a7d2
2 changed files with 4359 additions and 0 deletions

4356
lib/checkpoints_testnet.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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':