Skip to content

Commit

Permalink
Fix mismatched method names in comments (ava-labs#531)
Browse files Browse the repository at this point in the history
Signed-off-by: whosehang <whosehang@outlook.com>
  • Loading branch information
whosehang authored and oxbee committed Nov 6, 2024
1 parent 4a154fb commit 100d83d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion consensus/dummy/dynamic_fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func CalcBaseFee(config *params.ChainConfig, parent *types.Header, timestamp uin
return newRollupWindow, baseFee, nil
}

// EstiamteNextBaseFee attempts to estimate the next base fee based on a block with [parent] being built at
// EstimateNextBaseFee attempts to estimate the next base fee based on a block with [parent] being built at
// [timestamp].
// If [timestamp] is less than the timestamp of [parent], then it uses the same timestamp as parent.
// Warning: This function should only be used in estimation and should not be used when calculating the canonical
Expand Down
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ func (bc *BlockChain) setPreference(block *types.Block) error {
return nil
}

// LastAcceptedBlock returns the last block to be marked as accepted. It may or
// LastConsensusAcceptedBlock returns the last block to be marked as accepted. It may or
// may not yet be processed.
func (bc *BlockChain) LastConsensusAcceptedBlock() *types.Block {
bc.chainmu.Lock()
Expand Down
2 changes: 1 addition & 1 deletion core/rawdb/accessors_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func ReadSnapshotBlockHash(db ethdb.KeyValueReader) common.Hash {
return common.BytesToHash(data)
}

// WriteSnapshotRoot stores the root of the block whose state is contained in
// WriteSnapshotBlockHash stores the root of the block whose state is contained in
// the persisted snapshot.
func WriteSnapshotBlockHash(db ethdb.KeyValueWriter, blockHash common.Hash) {
if err := db.Put(snapshotBlockHashKey, blockHash[:]); err != nil {
Expand Down

0 comments on commit 100d83d

Please # to comment.