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

chore: fix some comments #11273

Merged
merged 1 commit into from
Jul 24, 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
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
Loading