From 1db700959f23ad2f67e5c5b54cdcf6a55e58dace Mon Sep 17 00:00:00 2001 From: evoskuil Date: Sun, 12 Jan 2025 21:17:17 -0500 Subject: [PATCH] Change prevout_size default to 2GB, sort settings. --- src/parser.cpp | 98 +++++++++++++++++++++++++------------------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/src/parser.cpp b/src/parser.cpp index fd2c07bf..119c70ae 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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; @@ -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(&configured.database.txs_buckets), - "The number of buckets in the txs table head, defaults to '524493'." - ) + /* input */ ( - "database.txs_size", - value(&configured.database.txs_size), - "The minimum allocation of the txs table body, defaults to '999581257'." + "database.input_size", + value(&configured.database.input_size), + "The minimum allocation of the input table body, defaults to '90116786234'." ) ( - "database.txs_rate", - value(&configured.database.txs_rate), - "The percentage expansion of the txs table body, defaults to '5'." + "database.input_rate", + value(&configured.database.input_rate), + "The percentage expansion of the input table body, defaults to '5'." ) - /* tx */ - ( - "database.tx_buckets", - value(&configured.database.tx_buckets), - "The number of buckets in the tx table head, defaults to '551320125'." - ) + /* output */ ( - "database.tx_size", - value(&configured.database.tx_size), - "The minimum allocation of the tx table body, defaults to '15435744998'." + "database.output_size", + value(&configured.database.output_size), + "The minimum allocation of the output table body, defaults to '24315563831'." ) ( - "database.tx_rate", - value(&configured.database.tx_rate), - "The percentage expansion of the tx table body, defaults to '5'." + "database.output_rate", + value(&configured.database.output_rate), + "The percentage expansion of the output table body, defaults to '5'." ) /* point */ @@ -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(&configured.database.puts_size), + "The minimum allocation of the puts table body, defaults to '6059682874'." + ) + ( + "database.puts_rate", + value(&configured.database.puts_rate), + "The percentage expansion of the puts table body, defaults to '5'." + ) + /* spend */ ( "database.spend_buckets", @@ -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(&configured.database.puts_size), - "The minimum allocation of the puts table body, defaults to '6059682874'." + "database.tx_buckets", + value(&configured.database.tx_buckets), + "The number of buckets in the tx table head, defaults to '551320125'." ) ( - "database.puts_rate", - value(&configured.database.puts_rate), - "The percentage expansion of the puts table body, defaults to '5'." + "database.tx_size", + value(&configured.database.tx_size), + "The minimum allocation of the tx table body, defaults to '15435744998'." ) - - /* input */ ( - "database.input_size", - value(&configured.database.input_size), - "The minimum allocation of the input table body, defaults to '90116786234'." + "database.tx_rate", + value(&configured.database.tx_rate), + "The percentage expansion of the tx table body, defaults to '5'." ) + + /* txs */ ( - "database.input_rate", - value(&configured.database.input_rate), - "The percentage expansion of the input table body, defaults to '5'." + "database.txs_buckets", + value(&configured.database.txs_buckets), + "The number of buckets in the txs table head, defaults to '524493'." ) - - /* output */ ( - "database.output_size", - value(&configured.database.output_size), - "The minimum allocation of the output table body, defaults to '24315563831'." + "database.txs_size", + value(&configured.database.txs_size), + "The minimum allocation of the txs table body, defaults to '999581257'." ) ( - "database.output_rate", - value(&configured.database.output_rate), - "The percentage expansion of the output table body, defaults to '5'." + "database.txs_rate", + value(&configured.database.txs_rate), + "The percentage expansion of the txs table body, defaults to '5'." ) /* candidate */ @@ -832,7 +832,7 @@ options_metadata parser::load_settings() THROWS ( "database.prevout_size", value(&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",