les: add GetCheckpoint to LES--fix lint fail

This commit is contained in:
pacamara 2017-12-14 12:24:14 +00:00
parent 2f607c2726
commit aab305de87

View file

@ -98,7 +98,7 @@ func updateChtFromPeer(pm *ProtocolManager, peer *peer, ctx context.Context) {
var sectionIdx uint64 = ((peerHeadBlockNum + 1) / light.ChtFrequency) - 1 var sectionIdx uint64 = ((peerHeadBlockNum + 1) / light.ChtFrequency) - 1
log.Debug("Retrieving checkpoint with: ", "sectionIdx", sectionIdx) log.Debug("Retrieving checkpoint with: ", "sectionIdx", sectionIdx)
req := &light.CheckpointRequest{SectionIdx: uint64(sectionIdx)} req := &light.CheckpointRequest{SectionIdx: sectionIdx}
pm.odr.Retrieve(ctx, req) pm.odr.Retrieve(ctx, req)
log.Info("Retrieved checkpoint from peer: ", log.Info("Retrieved checkpoint from peer: ",
"SectionHead=", common.ToHex(req.SectionHead.Bytes()), "SectionHead=", common.ToHex(req.SectionHead.Bytes()),