@@ -34,7 +34,7 @@ var errNoActiveJournal = errors.New("no active journal")
34
34
// devNull is a WriteCloser that just discards anything written into it. Its
35
35
// goal is to allow the transaction journal to write into a fake journal when
36
36
// loading transactions on startup without printing warnings due to no file
37
- // being readt for write.
37
+ // being read for write.
38
38
type devNull struct {}
39
39
40
40
func (* devNull ) Write (p []byte ) (n int , err error ) { return len (p ), nil }
@@ -57,7 +57,7 @@ func newTxJournal(path string) *txJournal {
57
57
// load parses a transaction journal dump from disk, loading its contents into
58
58
// the specified pool.
59
59
func (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
61
61
if _ , err := os .Stat (journal .path ); os .IsNotExist (err ) {
62
62
return nil
63
63
}
@@ -78,7 +78,7 @@ func (journal *txJournal) load(add func([]*types.Transaction) []error) error {
78
78
79
79
// Create a method to load a limited batch of transactions and bump the
80
80
// 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.
82
82
loadBatch := func (txs types.Transactions ) {
83
83
for _ , err := range add (txs ) {
84
84
if err != nil {
@@ -103,7 +103,7 @@ func (journal *txJournal) load(add func([]*types.Transaction) []error) error {
103
103
}
104
104
break
105
105
}
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
107
107
total ++
108
108
109
109
if batch = append (batch , tx ); batch .Len () > 1024 {
0 commit comments