Skip to content

Commit 09c51ee

Browse files
cratiu222gballet
authored andcommitted
chore: fix various comments (ethereum#31082)
1 parent 1e79444 commit 09c51ee

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

core/vm/eof_validation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func BenchmarkEOFValidation(b *testing.B) {
363363
}
364364
}
365365

366-
// BenchmarkEOFValidation tries to benchmark the code validation for the CALLF/RETF operation.
366+
// BenchmarkEOFValidation2 tries to benchmark the code validation for the CALLF/RETF operation.
367367
// For this we set up code that calls into 1024 code sections which
368368
// - contain calls to some other code sections.
369369
// We can't have all code sections calling each other, otherwise we would exceed 48KB.

tests/fuzzers/bls12381/bls12381_fuzz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func multiExpG1Gnark(gs []gnark.G1Affine, scalars []fr.Element) gnark.G1Affine {
346346
return res
347347
}
348348

349-
// multiExpG1Gnark is a naive implementation of G1 multi-exponentiation
349+
// multiExpG2Gnark is a naive implementation of G2 multi-exponentiation
350350
func multiExpG2Gnark(gs []gnark.G2Affine, scalars []fr.Element) gnark.G2Affine {
351351
res := gnark.G2Affine{}
352352
for i := 0; i < len(gs); i++ {

triedb/pathdb/database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ func (db *Database) Recoverable(root common.Hash) bool {
471471
if id == nil {
472472
return false
473473
}
474-
// Recoverable state must below the disk layer. The recoverable
475-
// state only refers the state that is currently not available,
474+
// Recoverable state must be below the disk layer. The recoverable
475+
// state only refers to the state that is currently not available,
476476
// but can be restored by applying state history.
477477
dl := db.tree.bottom()
478478
if *id >= dl.stateID() {

triedb/pathdb/difflayer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import (
2727
// diffLayer represents a collection of modifications made to the in-memory tries
2828
// along with associated state changes after running a block on top.
2929
//
30-
// The goal of a diff layer is to act as a journal, tracking recent modifications
31-
// made to the state, that have not yet graduated into a semi-immutable state.
30+
// The purpose of a diff layer is to serve as a journal, recording recent state modifications
31+
// that have not yet been committed to a more stable or semi-permanent state.
3232
type diffLayer struct {
3333
// Immutables
3434
root common.Hash // Root hash to which this layer diff belongs to

0 commit comments

Comments
 (0)