Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: hyphens to underscores #1673

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading