mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-15 08:23:46 +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
|
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()
|
lastStateID := _lastStateID.Uint64()
|
||||||
if !from.Before(to) {
|
if !from.Before(to) {
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue