Skip to content

Commit

Permalink
fix spec test: unexport graffiti in proposer and use spec's testing v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
y0sher committed Aug 11, 2024
1 parent bc9215c commit b5efcca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions protocol/genesis/ssv/testing/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/ssvlabs/ssv/protocol/genesis/ssv/runner"
)

var TestingGraffiti = []byte("SSV.test")
var TestingGraffiti = [32]byte{1}
var TestingHighestDecidedSlot = phase0.Slot(0)

var AttesterRunner = func(logger *zap.Logger, keySet *spectestingutils.TestKeySet) runner.Runner {
Expand Down Expand Up @@ -121,7 +121,7 @@ var baseRunner = func(logger *zap.Logger, role genesisspectypes.BeaconRole, valC
km,
valCheck,
TestingHighestDecidedSlot,
TestingGraffiti,
TestingGraffiti[:],
)
case genesisspectypes.BNRoleSyncCommittee:
return runner.NewSyncCommitteeRunner(
Expand Down
6 changes: 3 additions & 3 deletions protocol/v2/ssv/runner/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type ProposerRunner struct {
operatorSigner ssvtypes.OperatorSigner
valCheck specqbft.ProposedValueCheckF
metrics metrics.ConsensusMetrics
Graffiti []byte
graffiti []byte
}

func NewProposerRunner(
Expand Down Expand Up @@ -67,7 +67,7 @@ func NewProposerRunner(
signer: signer,
valCheck: valCheck,
operatorSigner: operatorSigner,
Graffiti: graffiti,
graffiti: graffiti,
metrics: metrics.NewConsensusMetrics(spectypes.RoleProposer),
}
}
Expand Down Expand Up @@ -113,7 +113,7 @@ func (r *ProposerRunner) ProcessPreConsensus(logger *zap.Logger, signedMsg *spec

start := time.Now()
duty = r.GetState().StartingDuty.(*spectypes.ValidatorDuty)
obj, ver, err := r.GetBeaconNode().GetBeaconBlock(duty.Slot, r.Graffiti, fullSig)
obj, ver, err := r.GetBeaconNode().GetBeaconBlock(duty.Slot, r.graffiti, fullSig)
if err != nil {
logger.Error("❌ failed to get blinded beacon block",
fields.PreConsensusTime(r.metrics.GetPreConsensusTime()),
Expand Down

0 comments on commit b5efcca

Please sign in to comment.