mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
Fix SendHeaderRequest peer minBlock (#2946)
This commit is contained in:
parent
3df4197f2e
commit
484c8eed91
@ -106,7 +106,7 @@ func (cs *ControlServerImpl) SendHeaderRequest(ctx context.Context, req *headerd
|
|||||||
}
|
}
|
||||||
minBlock := req.Number
|
minBlock := req.Number
|
||||||
if !req.Reverse {
|
if !req.Reverse {
|
||||||
minBlock = req.Number + req.Length*req.Skip
|
minBlock = req.Number + (req.Length-1)*(req.Skip+1)
|
||||||
}
|
}
|
||||||
|
|
||||||
outreq := proto_sentry.SendMessageByMinBlockRequest{
|
outreq := proto_sentry.SendMessageByMinBlockRequest{
|
||||||
|
Loading…
Reference in New Issue
Block a user