From 40e4e6c8f1ac4d406c55c3c1d8d92b947028308a Mon Sep 17 00:00:00 2001 From: Chris Li <271678682li@gmail.com> Date: Tue, 9 Apr 2024 22:50:19 +0800 Subject: [PATCH] core: fix some variable name --- core/blockchain.go | 4 ++-- eth/backend.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index aa47301d80..09c93bedc3 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -165,7 +165,7 @@ type CacheConfig struct { StateHistory uint64 // Number of blocks from head whose state histories are reserved. StateScheme string // Scheme used to store ethereum states and merkle tree nodes on top PathSyncFlush bool // Whether sync flush the trienodebuffer of pathdb to disk. - JournalFile string // whether enable TrieJournal store in journal file + JournalFilePath string SnapshotNoBuild bool // Whether the background generation is allowed SnapshotWait bool // Wait for snapshot construction on startup. TODO(karalabe): This is a dirty hack for testing, nuke it @@ -189,7 +189,7 @@ func (c *CacheConfig) triedbConfig() *triedb.Config { StateHistory: c.StateHistory, CleanCacheSize: c.TrieCleanLimit * 1024 * 1024, DirtyCacheSize: c.TrieDirtyLimit * 1024 * 1024, - JournalFilePath: c.JournalFile, + JournalFilePath: c.JournalFilePath, } } return config diff --git a/eth/backend.go b/eth/backend.go index d1579912ff..bb65d83652 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -281,7 +281,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) { StateHistory: config.StateHistory, StateScheme: config.StateScheme, PathSyncFlush: config.PathSyncFlush, - JournalFile: journalFile, + JournalFilePath: journalFile, } ) bcOps := make([]core.BlockChainOption, 0)