Skip to content

Commit

Permalink
Disable snapshots by default, update parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Dec 4, 2024
1 parent fd941fb commit 799d402
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ parser::parser(const configuration& defaults) NOEXCEPT
parser::parser(system::chain::selection context) NOEXCEPT
: configured(context)
{
// node

configured.node.snapshot_bytes = 0;
configured.node.snapshot_valid = 0;
configured.node.snapshot_confirm = 0;

// network

using level = network::messages::level;
using service = network::messages::service;

Expand Down Expand Up @@ -217,7 +225,7 @@ options_metadata parser::load_options() THROWS
BN_READ_VARIABLE ",t",
value<bool>(&configured.test)->
default_value(false)->zero_tokens(),
"Run built-in read test and display (validate block 523,354 if exists)."
"Run built-in read test and display."
)
(
BN_WRITE_VARIABLE ",w",
Expand Down Expand Up @@ -931,17 +939,17 @@ options_metadata parser::load_settings() THROWS
(
"node.snapshot_bytes",
value<uint64_t>(&configured.node.snapshot_bytes),
"Downloaded bytes that triggers snapshot, defaults to '200000000000' (0 disables)."
"Downloaded bytes that triggers snapshot, defaults to '0' (0 disables)."
)
(
"node.snapshot_valid",
value<uint32_t>(&configured.node.snapshot_valid),
"Completed validations that trigger snapshot, defaults to '250000' (0 disables)."
"Completed validations that trigger snapshot, defaults to '0' (0 disables)."
)
(
"node.snapshot_confirm",
value<uint32_t>(&configured.node.snapshot_confirm),
"Completed confirmations that trigger snapshot, defaults to '500000' (0 disables)."
"Completed confirmations that trigger snapshot, defaults to '0' (0 disables)."
)
(
"node.sample_period_seconds",
Expand Down

0 comments on commit 799d402

Please sign in to comment.