Add da waited time to sync block log (#13775)

This commit is contained in:
terence 2024-03-20 04:53:02 -10:00 committed by GitHub
parent e243f04e44
commit 27ecf448a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,6 +94,7 @@ func logBlockSyncStatus(block interfaces.ReadOnlyBeaconBlock, blockRoot [32]byte
"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,
"dataAvailabilityWaitedTime": daWaitedTime,
"deposits": len(block.Body().Deposits()), "deposits": len(block.Body().Deposits()),
} }
log.WithFields(lf).Debug("Synced new block") log.WithFields(lf).Debug("Synced new block")