Fix state state transition logging. (#9343)

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
This commit is contained in:
Jim McDonald
2021-08-09 21:05:46 +01:00
committed by GitHub
parent bfdaf8a3f5
commit 3de168b806

View File

@@ -17,7 +17,7 @@ var log = logrus.WithField("prefix", "blockchain")
// logs state transition related data every slot.
func logStateTransitionData(b block.BeaconBlock) {
log := log.WithField("slot", b.Slot)
log := log.WithField("slot", b.Slot())
if len(b.Body().Attestations()) > 0 {
log = log.WithField("attestations", len(b.Body().Attestations()))
}