@@ -34,7 +34,7 @@ var errNoActiveJournal = errors.New("no active journal")
3434// devNull is a WriteCloser that just discards anything written into it. Its
3535// goal is to allow the transaction journal to write into a fake journal when
3636// loading transactions on startup without printing warnings due to no file
37- // being readt for write.
37+ // being read for write.
3838type devNull struct {}
3939
4040func (* devNull ) Write (p []byte ) (n int , err error ) { return len (p ), nil }
@@ -57,7 +57,7 @@ func newTxJournal(path string) *txJournal {
5757// load parses a transaction journal dump from disk, loading its contents into
5858// the specified pool.
5959func (journal * txJournal ) load (add func ([]* types.Transaction ) []error ) error {
60- // Skip the parsing if the journal file doens 't exist at all
60+ // Skip the parsing if the journal file doesn 't exist at all
6161 if _ , err := os .Stat (journal .path ); os .IsNotExist (err ) {
6262 return nil
6363 }
@@ -78,7 +78,7 @@ func (journal *txJournal) load(add func([]*types.Transaction) []error) error {
7878
7979 // Create a method to load a limited batch of transactions and bump the
8080 // appropriate progress counters. Then use this method to load all the
81- // journalled transactions in small-ish batches.
81+ // journaled transactions in small-ish batches.
8282 loadBatch := func (txs types.Transactions ) {
8383 for _ , err := range add (txs ) {
8484 if err != nil {
@@ -103,7 +103,7 @@ func (journal *txJournal) load(add func([]*types.Transaction) []error) error {
103103 }
104104 break
105105 }
106- // New transaction parsed, queue up for later, import if threnshold is reached
106+ // New transaction parsed, queue up for later, import if threshold is reached
107107 total ++
108108
109109 if batch = append (batch , tx ); batch .Len () > 1024 {
0 commit comments