From 16d7eae1c8390576057a859ea4330fba895dca40 Mon Sep 17 00:00:00 2001
From: Marius van der Wijden <m.vanderwijden@live.de>
Date: Wed, 26 Aug 2020 12:20:12 +0200
Subject: [PATCH] eth: updated comments (#21490)

---
 eth/api.go        | 2 +-
 eth/api_tracer.go | 2 +-
 eth/bloombits.go  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/eth/api.go b/eth/api.go
index b3415f923..d65a8efa0 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -354,7 +354,7 @@ func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]*BadBlockArgs,
 // AccountRangeMaxResults is the maximum number of results to be returned per call
 const AccountRangeMaxResults = 256
 
-// AccountRangeAt enumerates all accounts in the given block and start point in paging request
+// AccountRange enumerates all accounts in the given block and start point in paging request
 func (api *PublicDebugAPI) AccountRange(blockNrOrHash rpc.BlockNumberOrHash, start []byte, maxResults int, nocode, nostorage, incompletes bool) (state.IteratorDump, error) {
 	var stateDb *state.StateDB
 	var err error
diff --git a/eth/api_tracer.go b/eth/api_tracer.go
index c5a8ada10..51c2408c2 100644
--- a/eth/api_tracer.go
+++ b/eth/api_tracer.go
@@ -401,7 +401,7 @@ func (api *PrivateDebugAPI) TraceBlockFromFile(ctx context.Context, file string,
 	return api.TraceBlock(ctx, blob, config)
 }
 
-// TraceBadBlockByHash returns the structured logs created during the execution of
+// TraceBadBlock returns the structured logs created during the execution of
 // EVM against a block pulled from the pool of bad ones and returns them as a JSON
 // object.
 func (api *PrivateDebugAPI) TraceBadBlock(ctx context.Context, hash common.Hash, config *TraceConfig) ([]*txTraceResult, error) {
diff --git a/eth/bloombits.go b/eth/bloombits.go
index f8b77f9cf..bd34bd7b6 100644
--- a/eth/bloombits.go
+++ b/eth/bloombits.go
@@ -137,7 +137,7 @@ func (b *BloomIndexer) Commit() error {
 	return batch.Write()
 }
 
-// PruneSections returns an empty error since we don't support pruning here.
+// Prune returns an empty error since we don't support pruning here.
 func (b *BloomIndexer) Prune(threshold uint64) error {
 	return nil
 }
-- 
GitLab