mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-04 00:44:27 +00:00
0d400faea2
* Remove unused parameters * Remove unused deposit contract config
18 lines
466 B
Go
18 lines
466 B
Go
package blockchain
|
|
|
|
import (
|
|
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
var log = logrus.WithField("prefix", "blockchain")
|
|
|
|
// logs state transition related data every slot.
|
|
func logStateTransitionData(b *ethpb.BeaconBlock) {
|
|
log.WithFields(logrus.Fields{
|
|
"slot": b.Slot,
|
|
"attestations": len(b.Body.Attestations),
|
|
"deposits": len(b.Body.Deposits),
|
|
}).Info("Finished applying state transition")
|
|
}
|