mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
Update consensus/bor/bor.go
Co-authored-by: Jaynti Kanani <jdkanani@gmail.com>
This commit is contained in:
parent
742c2104af
commit
89248d7116
1 changed files with 1 additions and 1 deletions
|
|
@ -1086,7 +1086,7 @@ func (c *Bor) CommitStates(
|
|||
}
|
||||
|
||||
from := *lastSync
|
||||
to := time.Unix(int64(chain.Chain.GetHeaderByNumber(number-1).Time), 0)
|
||||
to := time.Unix(int64(chain.Chain.GetHeaderByNumber(number-c.config.Sprint).Time), 0)
|
||||
lastStateID := _lastStateID.Uint64()
|
||||
if !from.Before(to) {
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue