Supported not storing raw data shards. (#289)

This commit is contained in:
Ravin Perera
2021-04-13 11:11:37 +05:30
committed by GitHub
parent 77279dc6ac
commit 7a837ede7c
5 changed files with 20 additions and 20 deletions

View File

@@ -154,7 +154,7 @@ namespace conf
cfg.node.role = ROLE::VALIDATOR;
cfg.node.history = HISTORY::CUSTOM;
cfg.node.history_config.max_primary_shards = 1;
cfg.node.history_config.max_raw_shards = 1;
cfg.node.history_config.max_raw_shards = 0;
cfg.contract.id = crypto::generate_uuid();
cfg.contract.execute = true;
@@ -367,12 +367,6 @@ namespace conf
std::cerr << "'max_primary_shards' cannot be zero in history=custom mode.\n";
return -1;
}
if (cfg.node.history_config.max_raw_shards == 0)
{
std::cerr << "'max_raw_shards' cannot be zero in history=custom mode.\n";
return -1;
}
}
}
catch (const std::exception &e)