Skip to content

Commit

Permalink
orderer: fix function names and comments
Browse files Browse the repository at this point in the history
Signed-off-by: knowmost <knowmost@outlook.com>
  • Loading branch information
knowmost authored and satota2 committed Apr 29, 2024
1 parent 3d796bc commit c2bc505
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion orderer/common/cluster/comm.go
Expand Up @@ -266,7 +266,7 @@ func (c *Comm) updateStubInMapping(channel string, mapping MemberMapping, node R
stub.Activate(c.createRemoteContext(stub, channel))
}

// createRemoteStub returns a function that creates a RemoteContext.
// createRemoteContext returns a function that creates a RemoteContext.
// It is used as a parameter to Stub.Activate() in order to activate
// a stub atomically.
func (c *Comm) createRemoteContext(stub *Stub, channel string) func() (*RemoteContext, error) {
Expand Down
2 changes: 1 addition & 1 deletion orderer/consensus/etcdraft/chain.go
Expand Up @@ -1443,7 +1443,7 @@ func (c *Chain) getInFlightConfChange() *raftpb.ConfChange {
return ConfChange(c.opts.BlockMetadata, confState)
}

// newMetadata extract config metadata from the configuration block
// newConfigMetadata extract config metadata from the configuration block
func (c *Chain) newConfigMetadata(block *common.Block) (*etcdraft.ConfigMetadata, *orderer.ConsensusType) {
c.logger.Infof("Extract config metadata from the configuration block")
metadata, consensusType, err := ConsensusMetadataFromConfigBlock(block)
Expand Down
2 changes: 1 addition & 1 deletion orderer/consensus/smartbft/signer.go
Expand Up @@ -65,7 +65,7 @@ func (s *Signer) SignProposal(proposal types.Proposal, _ []byte) *types.Signatur
}
}

// NewSignatureHeader creates a SignatureHeader with the correct signing identity and a valid nonce
// newIdentifierHeaderOrPanic creates an IdentifierHeader with the signer's identifier and a valid nonce
func (s *Signer) newIdentifierHeaderOrPanic(nonce []byte) *cb.IdentifierHeader {
return &cb.IdentifierHeader{
Identifier: uint32(s.ID),
Expand Down

0 comments on commit c2bc505

Please sign in to comment.