Skip to content

Commit

Permalink
chore: fix some function names (#10352)
Browse files Browse the repository at this point in the history
Signed-off-by: welfuture <[email protected]>
  • Loading branch information
welfuture authored May 15, 2024
1 parent c92bb9e commit 48a7212
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/changeset/accs.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func ForRange(db kv.Tx, bucket string, from, to uint64, walker func(blockN uint6
})
}

// RewindDataPlain generates rewind data for all plain buckets between the timestamp
// RewindData generates rewind data for all plain buckets between the timestamp
// timestapSrc is the current timestamp, and timestamp Dst is where we rewind
func RewindData(db kv.Tx, timestampSrc, timestampDst uint64, changes *etl.Collector, quit <-chan struct{}) error {
if err := walkAndCollect(
Expand Down
2 changes: 1 addition & 1 deletion common/math/big.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (i *HexOrDecimal256) MarshalText() ([]byte, error) {
// it however accepts either "0x"-prefixed (hex encoded) or non-prefixed (decimal)
type Decimal256 big.Int

// NewHexOrDecimal256 creates a new Decimal256
// NewDecimal256 creates a new Decimal256
func NewDecimal256(x int64) *Decimal256 {
b := big.NewInt(x)
d := Decimal256(*b)
Expand Down
2 changes: 1 addition & 1 deletion crypto/bn256/google/bn256.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48a7212

Please sign in to comment.