[pruning] re-enable the is_archival parameter (#2514)

Signed-off-by: Leo Chen <leo@harmony.one>
pull/2521/head v1.0-020200317.0
Leo Chen 5 years ago committed by GitHub
parent a815e11409
commit 666f6a16db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/harmony/main.go

@ -456,7 +456,7 @@ func setupConsensusAndNode(nodeConfig *nodeconfig.ConfigType) *node.Node {
// Current node. // Current node.
chainDBFactory := &shardchain.LDBFactory{RootDir: nodeConfig.DBDir} chainDBFactory := &shardchain.LDBFactory{RootDir: nodeConfig.DBDir}
currentNode := node.New(myHost, currentConsensus, chainDBFactory, blacklist, true) currentNode := node.New(myHost, currentConsensus, chainDBFactory, blacklist, *isArchival)
switch { switch {
case *networkType == nodeconfig.Localnet: case *networkType == nodeconfig.Localnet:

Loading…
Cancel
Save