From 47ec1af3a66e911dc30bbc98e330a1c409955e2a Mon Sep 17 00:00:00 2001 From: GoodDaisy <90915921+GoodDaisy@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:12:34 +0800 Subject: [PATCH 1/3] blockmanager_test: fix typo --- blockmanager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockmanager_test.go b/blockmanager_test.go index 45554b7c..85dae52b 100644 --- a/blockmanager_test.go +++ b/blockmanager_test.go @@ -229,7 +229,7 @@ func generateResponses(msgs []wire.Message, // The start height must be set to a checkpoint height+1. if q.StartHeight%wire.CFCheckptInterval != 1 { - return nil, fmt.Errorf("unexpexted start height %v", + return nil, fmt.Errorf("unexpected start height %v", q.StartHeight) } From 0df5cf558a3b6c980ea0eb633f4ba7edb432860b Mon Sep 17 00:00:00 2001 From: GoodDaisy <90915921+GoodDaisy@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:12:40 +0800 Subject: [PATCH 2/3] query: fix typo --- query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query.go b/query.go index 66a506dd..f406a04d 100644 --- a/query.go +++ b/query.go @@ -562,7 +562,7 @@ func (q *cfiltersQuery) handleResponse(req, resp wire.Message, } // prepareCFiltersQuery creates a cfiltersQuery that can be used to fetch a -// CFilter fo the given block hash. +// CFilter for the given block hash. func (s *ChainService) prepareCFiltersQuery(blockHash chainhash.Hash, filterType wire.FilterType, batchType optimisticBatchType, maxBatchSize int64) (*cfiltersQuery, error) { From 01467d0aafc7153c2c4cdbbaabe79a4f76474321 Mon Sep 17 00:00:00 2001 From: GoodDaisy <90915921+GoodDaisy@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:12:48 +0800 Subject: [PATCH 3/3] workmanager_test: fix typo --- query/workmanager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query/workmanager_test.go b/query/workmanager_test.go index 9fdaa605..13e81c76 100644 --- a/query/workmanager_test.go +++ b/query/workmanager_test.go @@ -207,7 +207,7 @@ func TestWorkManagerWorkDispatcherFailures(t *testing.T) { scheduledJobs[i] = make(chan sched) } - // Fot each worker, spin up a goroutine that will forward the job it + // For each worker, spin up a goroutine that will forward the job it // got to our slice of scheduled jobs, such that we can handle them in // order. for i := 0; i < len(workers); i++ {