Skip to content

Commit 2cffd4f

Browse files
hadvkaralabe
authored andcommitted
core: fix some small typos on comment code (#17278)
1 parent 7b1aa64 commit 2cffd4f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎core/blockchain.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks) (int, []interface{}, []*ty
10161016
// Do a sanity check that the provided chain is actually ordered and linked
10171017
for i := 1; i < len(chain); i++ {
10181018
if chain[i].NumberU64() != chain[i-1].NumberU64()+1 || chain[i].ParentHash() != chain[i-1].Hash() {
1019-
// Chain broke ancestry, log a messge (programming error) and skip insertion
1019+
// Chain broke ancestry, log a message (programming error) and skip insertion
10201020
log.Error("Non contiguous block insert", "number", chain[i].Number(), "hash", chain[i].Hash(),
10211021
"parent", chain[i].ParentHash(), "prevnumber", chain[i-1].Number(), "prevhash", chain[i-1].Hash())
10221022

‎core/headerchain.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func (hc *HeaderChain) ValidateHeaderChain(chain []*types.Header, checkFreq int)
208208
// Do a sanity check that the provided chain is actually ordered and linked
209209
for i := 1; i < len(chain); i++ {
210210
if chain[i].Number.Uint64() != chain[i-1].Number.Uint64()+1 || chain[i].ParentHash != chain[i-1].Hash() {
211-
// Chain broke ancestry, log a messge (programming error) and skip insertion
211+
// Chain broke ancestry, log a message (programming error) and skip insertion
212212
log.Error("Non contiguous header insert", "number", chain[i].Number, "hash", chain[i].Hash(),
213213
"parent", chain[i].ParentHash, "prevnumber", chain[i-1].Number, "prevhash", chain[i-1].Hash())
214214

‎core/tx_list.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ func (l *txPricedList) Removed() {
436436
}
437437

438438
// Cap finds all the transactions below the given price threshold, drops them
439-
// from the priced list and returs them for further removal from the entire pool.
439+
// from the priced list and returns them for further removal from the entire pool.
440440
func (l *txPricedList) Cap(threshold *big.Int, local *accountSet) types.Transactions {
441441
drop := make(types.Transactions, 0, 128) // Remote underpriced transactions to drop
442442
save := make(types.Transactions, 0, 64) // Local underpriced transactions to keep

0 commit comments

Comments
 (0)