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) } 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) { 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++ {