mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 00:27:38 +00:00
Add da waited time to sync block log (#13775)
This commit is contained in:
parent
e243f04e44
commit
27ecf448a7
@ -82,19 +82,20 @@ func logBlockSyncStatus(block interfaces.ReadOnlyBeaconBlock, blockRoot [32]byte
|
|||||||
if level >= logrus.DebugLevel {
|
if level >= logrus.DebugLevel {
|
||||||
parentRoot := block.ParentRoot()
|
parentRoot := block.ParentRoot()
|
||||||
lf := logrus.Fields{
|
lf := logrus.Fields{
|
||||||
"slot": block.Slot(),
|
"slot": block.Slot(),
|
||||||
"slotInEpoch": block.Slot() % params.BeaconConfig().SlotsPerEpoch,
|
"slotInEpoch": block.Slot() % params.BeaconConfig().SlotsPerEpoch,
|
||||||
"block": fmt.Sprintf("0x%s...", hex.EncodeToString(blockRoot[:])[:8]),
|
"block": fmt.Sprintf("0x%s...", hex.EncodeToString(blockRoot[:])[:8]),
|
||||||
"epoch": slots.ToEpoch(block.Slot()),
|
"epoch": slots.ToEpoch(block.Slot()),
|
||||||
"justifiedEpoch": justified.Epoch,
|
"justifiedEpoch": justified.Epoch,
|
||||||
"justifiedRoot": fmt.Sprintf("0x%s...", hex.EncodeToString(justified.Root)[:8]),
|
"justifiedRoot": fmt.Sprintf("0x%s...", hex.EncodeToString(justified.Root)[:8]),
|
||||||
"finalizedEpoch": finalized.Epoch,
|
"finalizedEpoch": finalized.Epoch,
|
||||||
"finalizedRoot": fmt.Sprintf("0x%s...", hex.EncodeToString(finalized.Root)[:8]),
|
"finalizedRoot": fmt.Sprintf("0x%s...", hex.EncodeToString(finalized.Root)[:8]),
|
||||||
"parentRoot": fmt.Sprintf("0x%s...", hex.EncodeToString(parentRoot[:])[:8]),
|
"parentRoot": fmt.Sprintf("0x%s...", hex.EncodeToString(parentRoot[:])[:8]),
|
||||||
"version": version.String(block.Version()),
|
"version": version.String(block.Version()),
|
||||||
"sinceSlotStartTime": prysmTime.Now().Sub(startTime),
|
"sinceSlotStartTime": prysmTime.Now().Sub(startTime),
|
||||||
"chainServiceProcessedTime": prysmTime.Now().Sub(receivedTime) - daWaitedTime,
|
"chainServiceProcessedTime": prysmTime.Now().Sub(receivedTime) - daWaitedTime,
|
||||||
"deposits": len(block.Body().Deposits()),
|
"dataAvailabilityWaitedTime": daWaitedTime,
|
||||||
|
"deposits": len(block.Body().Deposits()),
|
||||||
}
|
}
|
||||||
log.WithFields(lf).Debug("Synced new block")
|
log.WithFields(lf).Debug("Synced new block")
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user