Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshmuelov committed Dec 8, 2024
1 parent 1c33427 commit e5f4019
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protocol/v2/ssv/runner/committee.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (

specqbft "github.com/ssvlabs/ssv-spec/qbft"
spectypes "github.com/ssvlabs/ssv-spec/types"

"github.com/ssvlabs/ssv/logging/fields"
"github.com/ssvlabs/ssv/networkconfig"
"github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon"
Expand Down Expand Up @@ -672,6 +673,7 @@ func (cr *CommitteeRunner) executeDuty(ctx context.Context, logger *zap.Logger,
slot := duty.DutySlot()
// We set committeeIndex to 0 for simplicity, there is no need to specify it exactly because
// all 64 Ethereum committees assigned to this slot will get the same data to attest for.
logger.Debug("BEFORE: getting attestation data", fields.Slot(slot))
attData, _, err := cr.GetBeaconNode().GetAttestationData(slot, 0)
if err != nil {
return errors.Wrap(err, "failed to get attestation data")
Expand All @@ -680,6 +682,7 @@ func (cr *CommitteeRunner) executeDuty(ctx context.Context, logger *zap.Logger,
zap.Duration("attestation_data_time", time.Since(start)),
fields.Slot(slot),
)
logger.Debug("AFTER: got attestation data", zap.Any("attestation_data", attData))

cr.started = time.Now()
cr.metrics.StartConsensus()
Expand Down

0 comments on commit e5f4019

Please sign in to comment.