mirror of https://github.com/poanetwork/quorum.git
code improvement to set trieWriteCacheDisabled flag
This commit is contained in:
parent
e2c12896d2
commit
4268ec00ab
|
@ -1473,7 +1473,7 @@ func MakeChain(ctx *cli.Context, stack *node.Node) (chain *core.BlockChain, chai
|
||||||
|
|
||||||
trieWriteCacheDisabled := ctx.GlobalString(GCModeFlag.Name) == "archive"
|
trieWriteCacheDisabled := ctx.GlobalString(GCModeFlag.Name) == "archive"
|
||||||
//Quorum - set gcmode=archive for Raft
|
//Quorum - set gcmode=archive for Raft
|
||||||
if ctx.GlobalBool(RaftModeFlag.Name) {
|
if !trieWriteCacheDisabled && ctx.GlobalBool(RaftModeFlag.Name) {
|
||||||
log.Info("set gcmode=archive for Raft")
|
log.Info("set gcmode=archive for Raft")
|
||||||
trieWriteCacheDisabled = true
|
trieWriteCacheDisabled = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue