Skip to content

Commit 9e24491

Browse files
Sheldonkaralabe
authored andcommitted
core/bloombits, light: fix typos (#17235)
1 parent b536460 commit 9e24491

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎core/bloombits/matcher.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type partialMatches struct {
5959
// It can also have the actual results set to be used as a delivery data struct.
6060
//
6161
// The contest and error fields are used by the light client to terminate matching
62-
// early if an error is enountered on some path of the pipeline.
62+
// early if an error is encountered on some path of the pipeline.
6363
type Retrieval struct {
6464
Bit uint
6565
Sections []uint64
@@ -218,7 +218,7 @@ func (m *Matcher) Start(ctx context.Context, begin, end uint64, results chan uin
218218
// run creates a daisy-chain of sub-matchers, one for the address set and one
219219
// for each topic set, each sub-matcher receiving a section only if the previous
220220
// ones have all found a potential match in one of the blocks of the section,
221-
// then binary AND-ing its own matches and forwaring the result to the next one.
221+
// then binary AND-ing its own matches and forwarding the result to the next one.
222222
//
223223
// The method starts feeding the section indexes into the first sub-matcher on a
224224
// new goroutine and returns a sink channel receiving the results.
@@ -543,7 +543,7 @@ func (s *MatcherSession) Error() error {
543543
}
544544

545545
// AllocateRetrieval assigns a bloom bit index to a client process that can either
546-
// immediately reuest and fetch the section contents assigned to this bit or wait
546+
// immediately request and fetch the section contents assigned to this bit or wait
547547
// a little while for more sections to be requested.
548548
func (s *MatcherSession) AllocateRetrieval() (uint, bool) {
549549
fetcher := make(chan uint)
@@ -599,8 +599,8 @@ func (s *MatcherSession) DeliverSections(bit uint, sections []uint64, bitsets []
599599
}
600600
}
601601

602-
// Multiplex polls the matcher session for rerieval tasks and multiplexes it into
603-
// the reuested retrieval queue to be serviced together with other sessions.
602+
// Multiplex polls the matcher session for retrieval tasks and multiplexes it into
603+
// the requested retrieval queue to be serviced together with other sessions.
604604
//
605605
// This method will block for the lifetime of the session. Even after termination
606606
// of the session, any request in-flight need to be responded to! Empty responses

‎core/bloombits/matcher_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func testMatcher(t *testing.T, filter [][]bloomIndexes, start, blocks uint64, in
156156
// Track the number of retrieval requests made
157157
var requested uint32
158158

159-
// Start the matching session for the filter and the retriver goroutines
159+
// Start the matching session for the filter and the retriever goroutines
160160
quit := make(chan struct{})
161161
matches := make(chan uint64, 16)
162162

‎light/lightchain_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func TestBadHeaderHashes(t *testing.T) {
326326
func TestReorgBadHeaderHashes(t *testing.T) {
327327
bc := newTestLightChain()
328328

329-
// Create a chain, import and ban aferwards
329+
// Create a chain, import and ban afterwards
330330
headers := makeHeaderChainWithDiff(bc.genesisBlock, []int{1, 2, 3, 4}, 10)
331331

332332
if _, err := bc.InsertHeaderChain(headers, 1); err != nil {

0 commit comments

Comments
 (0)