Skip to content

Commit

Permalink
chore: fix problematic const name and some typos in comment (#1400)
Browse files Browse the repository at this point in the history
Signed-off-by: mountcount <cuimoman@outlook.com>
  • Loading branch information
mountcount authored Dec 2, 2024
1 parent 5853b9c commit 7eb3f81
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/state/pruner/pruner.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const (
// stateBloomFilePrefix is the filename prefix of state bloom filter.
stateBloomFilePrefix = "statebloom"

// stateBloomFilePrefix is the filename suffix of state bloom filter.
// stateBloomFileSuffix is the filename suffix of state bloom filter.
stateBloomFileSuffix = "bf.gz"

// stateBloomFileTempSuffix is the filename suffix of state bloom filter
Expand Down
2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ func (w *worker) commitTransactions(env *environment, plainTxs, blobTxs *transac
continue
}
// Abort transaction if it won't fit in the block and continue to search for a smaller
// transction that will fit.
// transaction that will fit.
if totalTxsSize := env.size + tx.Size(); totalTxsSize > targetTxsSize {
log.Trace("Skipping transaction that would exceed target size", "hash", tx.Hash(), "totalTxsSize", totalTxsSize, "txSize", tx.Size())
txs.Pop()
Expand Down
2 changes: 1 addition & 1 deletion plugin/evm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ func TestConfigureLogLevel(t *testing.T) {
}
}

// If the VM was not initialized, do not attept to shut it down
// If the VM was not initialized, do not attempt to shut it down
if err == nil {
shutdownChan := make(chan error, 1)
shutdownFunc := func() {
Expand Down
2 changes: 1 addition & 1 deletion sync/statesync/trie_sync_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (t *trieSyncStats) incLeafs(segment *trieSegment, count uint64, remaining u
}
}

// estimateSegmentsInProgressTime retrns the ETA for all trie segments
// estimateSegmentsInProgressTime returns the ETA for all trie segments
// in progress to finish (uses the one with most remaining leafs to estimate).
func (t *trieSyncStats) estimateSegmentsInProgressTime() time.Duration {
if len(t.remainingLeafs) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion warp/aggregator/aggregator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func TestAggregateSignatures(t *testing.T) {
expectedErr: nil,
},
{
name: "early termination of signature fetching on parent context cancelation",
name: "early termination of signature fetching on parent context cancellation",
contextWithCancelFunc: func() (context.Context, context.CancelFunc) {
ctx, cancel := context.WithCancel(context.Background())
cancel()
Expand Down

0 comments on commit 7eb3f81

Please sign in to comment.