log state update duration, lower info threshold for detail logging
This commit is contained in:
parent
abe0d7b4ae
commit
0fb02b5206
|
@ -199,11 +199,13 @@ proc advanceClearanceState*(dag: ChainDagRef) =
|
|||
let next =
|
||||
dag.clearanceState.blck.atSlot(dag.clearanceState.blck.slot + 1)
|
||||
|
||||
debug "Preparing clearance state for next block", next
|
||||
|
||||
let startTick = Moment.now()
|
||||
var cache = StateCache()
|
||||
updateStateData(dag, dag.clearanceState, next, true, cache)
|
||||
|
||||
debug "Prepared clearance state for next block",
|
||||
next, updateStateDur = Moment.now() - startTick
|
||||
|
||||
proc addRawBlockKnownParent(
|
||||
dag: ChainDAGRef, quarantine: QuarantineRef,
|
||||
signedBlock: SignedBeaconBlock,
|
||||
|
|
|
@ -855,7 +855,7 @@ proc updateStateData*(
|
|||
assignDur
|
||||
replayDur
|
||||
|
||||
if (assignDur + replayDur) >= 1.seconds:
|
||||
if (assignDur + replayDur) >= 250.millis:
|
||||
# This might indicate there's a cache that's not in order or a disk that is
|
||||
# too slow - for now, it's here for investigative purposes and the cutoff
|
||||
# time might need tuning
|
||||
|
|
Loading…
Reference in New Issue