Skip to content

Commit

Permalink
chore: fix some comments (#11273)
Browse files Browse the repository at this point in the history
Signed-off-by: yingshanghuangqiao <[email protected]>
  • Loading branch information
yingshanghuangqiao authored Jul 24, 2024
1 parent 842b5f7 commit 4363e98
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cl/cltypes/solid/attestation_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
// target: 40 bytes
const AttestationDataBufferSize = 8 + 8 + 32 + 40*2

// AttestantionData contains information about attestantion, including finalized/attested checkpoints.
// AttestationData contains information about attestantion, including finalized/attested checkpoints.
type AttestationData []byte

func NewAttestionDataFromParameters(
Expand Down
2 changes: 1 addition & 1 deletion consensus/clique/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type Snapshot struct {
Tally map[libcommon.Address]Tally `json:"tally"` // Current vote tally to avoid recalculating
}

// signersAscending implements the sort interface to allow sorting a list of addresses
// SignersAscending implements the sort interface to allow sorting a list of addresses
type SignersAscending []libcommon.Address

func (s SignersAscending) Len() int { return len(s) }
Expand Down
2 changes: 1 addition & 1 deletion consensus/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ type EngineReader interface {
Close() error
}

// EngineReader are write methods of the consensus engine
// EngineWriter are write methods of the consensus engine
type EngineWriter interface {
// VerifyHeader checks whether a header conforms to the consensus rules of a
// given engine. Verifying the seal may be done optionally here, or explicitly
Expand Down
2 changes: 1 addition & 1 deletion core/rawdb/blockio/block_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (
// Prune: delete old data
// Unwind: delete recent data

// BlockReader can read blocks from db and snapshots
// BlockWriter can write blocks from db and snapshots
type BlockWriter struct {
}

Expand Down

0 comments on commit 4363e98

Please sign in to comment.