File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package core
1919import (
2020 "errors"
2121 "io"
22+ "io/fs"
2223 "os"
2324
2425 "github.com/ethereum/go-ethereum/common"
@@ -57,12 +58,12 @@ func newTxJournal(path string) *txJournal {
5758// load parses a transaction journal dump from disk, loading its contents into
5859// the specified pool.
5960func (journal * txJournal ) load (add func ([]* types.Transaction ) []error ) error {
60- // Skip the parsing if the journal file doesn't exist at all
61- if ! common .FileExist (journal .path ) {
62- return nil
63- }
6461 // Open the journal for loading any past transactions
6562 input , err := os .Open (journal .path )
63+ if errors .Is (err , fs .ErrNotExist ) {
64+ // Skip the parsing if the journal file doesn't exist at all
65+ return nil
66+ }
6667 if err != nil {
6768 return err
6869 }
You can’t perform that action at this time.
0 commit comments