mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Revert "apply comments"
This reverts commit 4ca2e8e7a2.
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
4ca2e8e7a2
commit
474fd29ec8
4 changed files with 7 additions and 7 deletions
|
|
@ -223,7 +223,7 @@ func initGenesis(ctx *cli.Context) error {
|
|||
overrides.OverrideVerkle = &v
|
||||
}
|
||||
|
||||
chaindb, err := stack.OpenDatabaseWithFreezer(ethconfig.DatabaseName, 0, 0, ctx.String(utils.AncientFlag.Name), ethconfig.DatabaseNamespace, false)
|
||||
chaindb, err := stack.OpenDatabaseWithFreezer(ethconfig.ChainDbName, 0, 0, ctx.String(utils.AncientFlag.Name), ethconfig.ChainDbNamespace, false)
|
||||
if err != nil {
|
||||
utils.Fatalf("Failed to open database: %v", err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2029,7 +2029,7 @@ func MakeChainDatabase(ctx *cli.Context, stack *node.Node, readonly bool) ethdb.
|
|||
}
|
||||
chainDb = remotedb.New(client)
|
||||
default:
|
||||
chainDb, err = stack.OpenDatabaseWithFreezer(ethconfig.DatabaseName, cache, handles, ctx.String(AncientFlag.Name), ethconfig.DatabaseNamespace, readonly)
|
||||
chainDb, err = stack.OpenDatabaseWithFreezer(ethconfig.ChainDbName, cache, handles, ctx.String(AncientFlag.Name), ethconfig.ChainDbNamespace, readonly)
|
||||
}
|
||||
if err != nil {
|
||||
Fatalf("Could not open database: %v", err)
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
|
|||
}
|
||||
log.Info("Allocated trie memory caches", "clean", common.StorageSize(config.TrieCleanCache)*1024*1024, "dirty", common.StorageSize(config.TrieDirtyCache)*1024*1024)
|
||||
|
||||
chainDb, err := stack.OpenDatabaseWithFreezer(ethconfig.DatabaseName, config.DatabaseCache, config.DatabaseHandles, config.DatabaseFreezer, ethconfig.DatabaseNamespace, false)
|
||||
chainDb, err := stack.OpenDatabaseWithFreezer("chaindata", config.DatabaseCache, config.DatabaseHandles, config.DatabaseFreezer, "eth/db/chaindata/", false)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,11 +37,11 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
// DatabaseName is the name of the chain database
|
||||
DatabaseName = "chaindata"
|
||||
// ChainDbName is the name of the chain database
|
||||
ChainDbName = "chaindata"
|
||||
|
||||
// DatabaseNamespace is the namespace for the chain database
|
||||
DatabaseNamespace = "eth/db/chaindata/"
|
||||
// ChainDbNamespace is the namespace for the chain database
|
||||
ChainDbNamespace = "eth/db/chaindata/"
|
||||
)
|
||||
|
||||
// FullNodeGPO contains default gasprice oracle settings for full node.
|
||||
|
|
|
|||
Loading…
Reference in a new issue