Skip to content

Commit

Permalink
switch hyphens to underscore in prepare signers logs (#1673)
Browse files Browse the repository at this point in the history
  • Loading branch information
y0sher authored and moshe-blox committed Sep 23, 2024
1 parent f4f7aac commit 56b3400
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions protocol/genesis/qbft/instance/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (i *Instance) uponPrepare(logger *zap.Logger, signedPrepare *genesisspecqbf

logger.Debug("📬 got prepare message",
fields.Round(specqbft.Round(i.State.Round)),
zap.Any("prepare-signers", signedPrepare.Signers),
zap.Any("prepare_signers", signedPrepare.Signers),
fields.Root(signedPrepare.Message.Root))

if hasQuorumBefore {
Expand All @@ -49,7 +49,7 @@ func (i *Instance) uponPrepare(logger *zap.Logger, signedPrepare *genesisspecqbf

logger.Debug("🎯 got prepare quorum",
fields.Round(specqbft.Round(i.State.Round)),
zap.Any("prepare-signers", allSigners(prepareMsgContainer.MessagesForRound(i.State.Round))),
zap.Any("prepare_signers", allSigners(prepareMsgContainer.MessagesForRound(i.State.Round))),
fields.Root(proposedRoot))

commitMsg, err := CreateCommit(i.State, i.config, proposedRoot)
Expand Down
2 changes: 1 addition & 1 deletion protocol/genesis/qbft/instance/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (i *Instance) uponProposal(logger *zap.Logger, signedProposal *genesisspecq
logger.Debug("📢 got proposal, broadcasting prepare message",
fields.Round(specqbft.Round(i.State.Round)),
zap.Any("proposal_signers", signedProposal.Signers),
zap.Any("prepare-signers", prepare.Signers))
zap.Any("prepare_signers", prepare.Signers))

if err := i.Broadcast(logger, prepare); err != nil {
return errors.Wrap(err, "failed to broadcast prepare message")
Expand Down
4 changes: 2 additions & 2 deletions protocol/v2/qbft/instance/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (i *Instance) uponPrepare(logger *zap.Logger, msg *specqbft.ProcessingMessa
proposedRoot := i.State.ProposalAcceptedForCurrentRound.QBFTMessage.Root
logger.Debug("📬 got prepare message",
fields.Round(i.State.Round),
zap.Any("prepare-signers", msg.SignedMessage.OperatorIDs),
zap.Any("prepare_signers", msg.SignedMessage.OperatorIDs),
fields.Root(proposedRoot))

if hasQuorumBefore {
Expand All @@ -47,7 +47,7 @@ func (i *Instance) uponPrepare(logger *zap.Logger, msg *specqbft.ProcessingMessa

logger.Debug("🎯 got prepare quorum",
fields.Round(i.State.Round),
zap.Any("prepare-signers", allSigners(prepareMsgContainer.MessagesForRound(i.State.Round))))
zap.Any("prepare_signers", allSigners(prepareMsgContainer.MessagesForRound(i.State.Round))))

commitMsg, err := CreateCommit(i.State, i.signer, proposedRoot)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion protocol/v2/qbft/instance/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (i *Instance) uponProposal(logger *zap.Logger, msg *specqbft.ProcessingMess
logger.Debug("📢 got proposal, broadcasting prepare message",
fields.Round(i.State.Round),
zap.Any("proposal_signers", msg.SignedMessage.OperatorIDs),
zap.Any("prepare-signers", prepare.OperatorIDs))
zap.Any("prepare_signers", prepare.OperatorIDs))

if err := i.Broadcast(logger, prepare); err != nil {
return errors.Wrap(err, "failed to broadcast prepare message")
Expand Down

0 comments on commit 56b3400

Please sign in to comment.