Skip to content

Commit

Permalink
added debug logs for state sync
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikspatil024 committed Jun 8, 2023
1 parent d25732c commit 477e93d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions consensus/bor/bor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1200,13 +1200,15 @@ 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 {
return nil, err
}

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()
Expand Down

0 comments on commit 477e93d

Please sign in to comment.