diff --git a/core/rawdb/accessors_indexes.go b/core/rawdb/accessors_indexes.go index 419a67bd70..95861266ba 100644 --- a/core/rawdb/accessors_indexes.go +++ b/core/rawdb/accessors_indexes.go @@ -224,7 +224,7 @@ func ReadReceipt(db ctxcdb.Reader, hash common.Hash, config *params.ChainConfig) return nil, common.Hash{}, 0, 0 } -// ReadFilterMapRow retrieves a filter map row at the given mapRowIndex +// ReadFilterMapExtRow retrieves a filter map row at the given mapRowIndex // (see filtermaps.mapRowIndex for the storage index encoding). // Note that zero length rows are not stored in the database and therefore all // non-existent entries are interpreted as empty rows and return no error. diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go index b62eaa526d..cbc3c6be95 100644 --- a/core/vm/gas_table.go +++ b/core/vm/gas_table.go @@ -26,7 +26,7 @@ import ( // "github.com/CortexFoundation/CortexTheseus/core/types" ) -// memoryGasCosts calculates the quadratic gas for memory expansion. It does so +// memoryGasCost calculates the quadratic gas for memory expansion. It does so // only for the memory region that is expanded, not the total memory. func memoryGasCost(mem *Memory, newMemSize uint64) (uint64, error) { diff --git a/crypto/bn256/google/bn256.go b/crypto/bn256/google/bn256.go index 0a9d5cd35d..93953e23a9 100644 --- a/crypto/bn256/google/bn256.go +++ b/crypto/bn256/google/bn256.go @@ -166,7 +166,7 @@ type G2 struct { p *twistPoint } -// RandomG1 returns x and g₂ˣ where x is a random, non-zero number read from r. +// RandomG2 returns x and g₂ˣ where x is a random, non-zero number read from r. func RandomG2(r io.Reader) (*big.Int, *G2, error) { var k *big.Int var err error