mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 23:56:43 +00:00
added debug logs for state sync
This commit is contained in:
parent
d25732c949
commit
477e93d2fa
1 changed files with 2 additions and 0 deletions
|
|
@ -1200,6 +1200,7 @@ func (c *Bor) CommitStates(
|
|||
|
||||
stateSyncDelay := c.config.CalculateStateSyncDelay(number)
|
||||
to = time.Unix(int64(header.Time-stateSyncDelay), 0)
|
||||
log.Debug("Post Indore", "lastStateIDBig", lastStateIDBig, "to", to, "stateSyncDelay", stateSyncDelay)
|
||||
} else {
|
||||
lastStateIDBig, err = c.GenesisContractsClient.LastStateId(nil, number-1, header.ParentHash)
|
||||
if err != nil {
|
||||
|
|
@ -1207,6 +1208,7 @@ func (c *Bor) CommitStates(
|
|||
}
|
||||
|
||||
to = time.Unix(int64(chain.Chain.GetHeaderByNumber(number-c.config.CalculateSprint(number)).Time), 0)
|
||||
log.Debug("Pre Indore", "lastStateIDBig", lastStateIDBig, "to", to)
|
||||
}
|
||||
|
||||
lastStateID := lastStateIDBig.Uint64()
|
||||
|
|
|
|||
Loading…
Reference in a new issue