2019-08-24 17:51:00 +00:00
|
|
|
package blockchain
|
|
|
|
|
|
|
|
import (
|
2019-11-27 05:08:18 +00:00
|
|
|
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
2019-08-24 17:51:00 +00:00
|
|
|
"github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
|
|
|
var log = logrus.WithField("prefix", "blockchain")
|
|
|
|
|
|
|
|
// logs state transition related data every slot.
|
|
|
|
func logStateTransitionData(b *ethpb.BeaconBlock, r []byte) {
|
|
|
|
log.WithFields(logrus.Fields{
|
|
|
|
"slot": b.Slot,
|
|
|
|
"attestations": len(b.Body.Attestations),
|
|
|
|
"deposits": len(b.Body.Deposits),
|
2019-10-01 20:05:17 +00:00
|
|
|
}).Info("Finished applying state transition")
|
2019-08-24 17:51:00 +00:00
|
|
|
}
|