Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 49 additions & 49 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ parser::parser(system::chain::selection context) NOEXCEPT
// caches

configured.database.prevout_buckets = 850'000;
configured.database.prevout_size = 5'000'000;
configured.database.prevout_size = 2'000'000'000;
configured.database.prevout_rate = 5;

configured.database.validated_tx_buckets = 551'320'125;
Expand Down Expand Up @@ -678,38 +678,28 @@ options_metadata parser::load_settings() THROWS
"The percentage expansion of the header table body, defaults to '5'."
)

/* txs */
(
"database.txs_buckets",
value<uint32_t>(&configured.database.txs_buckets),
"The number of buckets in the txs table head, defaults to '524493'."
)
/* input */
(
"database.txs_size",
value<uint64_t>(&configured.database.txs_size),
"The minimum allocation of the txs table body, defaults to '999581257'."
"database.input_size",
value<uint64_t>(&configured.database.input_size),
"The minimum allocation of the input table body, defaults to '90116786234'."
)
(
"database.txs_rate",
value<uint16_t>(&configured.database.txs_rate),
"The percentage expansion of the txs table body, defaults to '5'."
"database.input_rate",
value<uint16_t>(&configured.database.input_rate),
"The percentage expansion of the input table body, defaults to '5'."
)

/* tx */
(
"database.tx_buckets",
value<uint32_t>(&configured.database.tx_buckets),
"The number of buckets in the tx table head, defaults to '551320125'."
)
/* output */
(
"database.tx_size",
value<uint64_t>(&configured.database.tx_size),
"The minimum allocation of the tx table body, defaults to '15435744998'."
"database.output_size",
value<uint64_t>(&configured.database.output_size),
"The minimum allocation of the output table body, defaults to '24315563831'."
)
(
"database.tx_rate",
value<uint16_t>(&configured.database.tx_rate),
"The percentage expansion of the tx table body, defaults to '5'."
"database.output_rate",
value<uint16_t>(&configured.database.output_rate),
"The percentage expansion of the output table body, defaults to '5'."
)

/* point */
Expand All @@ -729,6 +719,18 @@ options_metadata parser::load_settings() THROWS
"The percentage expansion of the point table body, defaults to '5'."
)

/* puts */
(
"database.puts_size",
value<uint64_t>(&configured.database.puts_size),
"The minimum allocation of the puts table body, defaults to '6059682874'."
)
(
"database.puts_rate",
value<uint16_t>(&configured.database.puts_rate),
"The percentage expansion of the puts table body, defaults to '5'."
)

/* spend */
(
"database.spend_buckets",
Expand All @@ -746,40 +748,38 @@ options_metadata parser::load_settings() THROWS
"The percentage expansion of the spend table body, defaults to '5'."
)

/* puts */
/* tx */
(
"database.puts_size",
value<uint64_t>(&configured.database.puts_size),
"The minimum allocation of the puts table body, defaults to '6059682874'."
"database.tx_buckets",
value<uint32_t>(&configured.database.tx_buckets),
"The number of buckets in the tx table head, defaults to '551320125'."
)
(
"database.puts_rate",
value<uint16_t>(&configured.database.puts_rate),
"The percentage expansion of the puts table body, defaults to '5'."
"database.tx_size",
value<uint64_t>(&configured.database.tx_size),
"The minimum allocation of the tx table body, defaults to '15435744998'."
)

/* input */
(
"database.input_size",
value<uint64_t>(&configured.database.input_size),
"The minimum allocation of the input table body, defaults to '90116786234'."
"database.tx_rate",
value<uint16_t>(&configured.database.tx_rate),
"The percentage expansion of the tx table body, defaults to '5'."
)

/* txs */
(
"database.input_rate",
value<uint16_t>(&configured.database.input_rate),
"The percentage expansion of the input table body, defaults to '5'."
"database.txs_buckets",
value<uint32_t>(&configured.database.txs_buckets),
"The number of buckets in the txs table head, defaults to '524493'."
)

/* output */
(
"database.output_size",
value<uint64_t>(&configured.database.output_size),
"The minimum allocation of the output table body, defaults to '24315563831'."
"database.txs_size",
value<uint64_t>(&configured.database.txs_size),
"The minimum allocation of the txs table body, defaults to '999581257'."
)
(
"database.output_rate",
value<uint16_t>(&configured.database.output_rate),
"The percentage expansion of the output table body, defaults to '5'."
"database.txs_rate",
value<uint16_t>(&configured.database.txs_rate),
"The percentage expansion of the txs table body, defaults to '5'."
)

/* candidate */
Expand Down Expand Up @@ -832,7 +832,7 @@ options_metadata parser::load_settings() THROWS
(
"database.prevout_size",
value<uint64_t>(&configured.database.prevout_size),
"The minimum allocation of the prevout table body, defaults to '5000000'."
"The minimum allocation of the prevout table body, defaults to '2000000000'."
)
(
"database.prevout_rate",
Expand Down
Loading