les: fix checkpoint sync (#20120)

This commit is contained in:
gary rong
2019-09-25 16:05:15 +08:00
committed by Martin Holst Swende
parent aca39a6498
commit 32b07e8b1f
4 changed files with 117 additions and 16 deletions

View File

@ -35,11 +35,8 @@ type checkpointOracle struct {
config *params.CheckpointOracleConfig
contract *checkpointoracle.CheckpointOracle
// Whether the contract backend is set.
running int32
getLocal func(uint64) params.TrustedCheckpoint // Function used to retrieve local checkpoint
syncDoneHook func() // Function used to notify that light syncing has completed.
running int32 // Flag whether the contract backend is set or not
getLocal func(uint64) params.TrustedCheckpoint // Function used to retrieve local checkpoint
}
// newCheckpointOracle returns a checkpoint registrar handler.