mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
les: add GetCheckpoint to LES--fix lint fail
This commit is contained in:
parent
2f607c2726
commit
aab305de87
1 changed files with 1 additions and 1 deletions
|
|
@ -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()),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue