Skip to content

Commit c6706f0

Browse files
committed
Apply suggestions from code review
Signed-off-by: jsvisa <[email protected]>
1 parent c6169e4 commit c6706f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eth/ethconfig/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var Defaults = Config{
6060
TrieCleanCache: 154,
6161
TrieDirtyCache: 256,
6262
TrieTimeout: 60 * time.Minute,
63-
TrieDBJournal: "triedb.journal",
63+
TrieDBJournal: "triedb.journal.rlp",
6464
SnapshotCache: 102,
6565
FilterLogCacheSize: 32,
6666
Miner: miner.DefaultConfig,

triedb/pathdb/journal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ func (db *Database) Journal(root common.Hash) error {
344344
var err error
345345
file, err = os.OpenFile(tmpName, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
346346
if err != nil {
347-
return fmt.Errorf("failed to open journal file %s: %w", db.config.JournalPath, err)
347+
return fmt.Errorf("failed to open journal file %s: %w", tmpName, err)
348348
}
349349
defer func() {
350350
if file != nil {

0 commit comments

Comments
 (0)