mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-06-05 09:46:57 +00:00
Supported not storing raw data shards. (#289)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user