diff --git a/cmd/harmony/flags.go b/cmd/harmony/flags.go index c3b03e336..2ffceb6e5 100644 --- a/cmd/harmony/flags.go +++ b/cmd/harmony/flags.go @@ -408,8 +408,8 @@ func applyGeneralFlags(cmd *cobra.Command, config *harmonyconfig.HarmonyConfig) if cli.IsFlagChanged(cmd, triesInMemoryFlag) { value := cli.GetIntFlagValue(cmd, triesInMemoryFlag) - if value <= 1 { - panic("Must number greater than 1 for txpool.accountslots") + if value <= 2 { + panic("Must provide number greater than 2 for General.TriesInMemory") } config.General.TriesInMemory = value } diff --git a/core/blockchain_impl.go b/core/blockchain_impl.go index 01f1b21e6..8b0683bd6 100644 --- a/core/blockchain_impl.go +++ b/core/blockchain_impl.go @@ -1071,7 +1071,7 @@ func (bc *BlockChainImpl) Stop() { // We're writing three different states to catch different restart scenarios: // - HEAD: So we don't need to reprocess any blocks in the general case // - HEAD-1: So we don't do large reorgs if our HEAD becomes an uncle - // - HEAD-127: So we have a hard limit on the number of blocks reexecuted + // - HEAD-TriesInMemory: So we have a configurable hard limit on the number of blocks reexecuted (default 128) if !bc.cacheConfig.Disabled { triedb := bc.stateCache.TrieDB()