diff --git a/eth/api_backend.go b/eth/api_backend.go index cf0da7e036..7669755277 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -112,7 +112,7 @@ func (b *EthApiBackend) BlockByNumber(ctx context.Context, blockNr rpc.BlockNumb return b.eth.blockchain.CurrentBlock(), nil } else if blockNr == rpc.ConfirmedBlockNumber { if b.eth.chainConfig.XDPoS == nil { - return nil, errors.New("PoW does not support confirmed block loopup") + return nil, errors.New("PoW does not support confirmed block lookup") } current := b.eth.blockchain.CurrentBlock().Header() if b.eth.blockchain.Config().XDPoS.BlockConsensusVersion( @@ -124,7 +124,7 @@ func (b *EthApiBackend) BlockByNumber(ctx context.Context, blockNr rpc.BlockNumb confirmedHash := b.XDPoS.EngineV2.GetLatestCommittedBlockInfo().Hash return b.eth.blockchain.GetBlockByHash(confirmedHash), nil } else { - return nil, errors.New("PoS V1 does not support confirmed block loopup") + return nil, errors.New("PoS V1 does not support confirmed block lookup") } } return b.eth.blockchain.GetBlockByNumber(uint64(blockNr)), nil diff --git a/light/txpool.go b/light/txpool.go index 5fabb78989..27b749bf4d 100644 --- a/light/txpool.go +++ b/light/txpool.go @@ -179,7 +179,7 @@ func (pool *TxPool) checkMinedTxs(ctx context.Context, hash common.Hash, number } // If some transactions have been mined, write the needed data to disk and update if list != nil { - // Retrieve all the receipts belonging to this block and write the loopup table + // Retrieve all the receipts belonging to this block and write the lookup table if _, err := GetBlockReceipts(ctx, pool.odr, hash, number); err != nil { // ODR caches, ignore results return err }