Skip to content

Commit baa8955

Browse files
authored
Merge pull request #710 from evoskuil/master
Change prevout_size default to 2GB, sort settings.
2 parents c328dff + 1db7009 commit baa8955

File tree

1 file changed

+49
-49
lines changed

1 file changed

+49
-49
lines changed

src/parser.cpp

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ parser::parser(system::chain::selection context) NOEXCEPT
120120
// caches
121121

122122
configured.database.prevout_buckets = 850'000;
123-
configured.database.prevout_size = 5'000'000;
123+
configured.database.prevout_size = 2'000'000'000;
124124
configured.database.prevout_rate = 5;
125125

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

681-
/* txs */
682-
(
683-
"database.txs_buckets",
684-
value<uint32_t>(&configured.database.txs_buckets),
685-
"The number of buckets in the txs table head, defaults to '524493'."
686-
)
681+
/* input */
687682
(
688-
"database.txs_size",
689-
value<uint64_t>(&configured.database.txs_size),
690-
"The minimum allocation of the txs table body, defaults to '999581257'."
683+
"database.input_size",
684+
value<uint64_t>(&configured.database.input_size),
685+
"The minimum allocation of the input table body, defaults to '90116786234'."
691686
)
692687
(
693-
"database.txs_rate",
694-
value<uint16_t>(&configured.database.txs_rate),
695-
"The percentage expansion of the txs table body, defaults to '5'."
688+
"database.input_rate",
689+
value<uint16_t>(&configured.database.input_rate),
690+
"The percentage expansion of the input table body, defaults to '5'."
696691
)
697692

698-
/* tx */
699-
(
700-
"database.tx_buckets",
701-
value<uint32_t>(&configured.database.tx_buckets),
702-
"The number of buckets in the tx table head, defaults to '551320125'."
703-
)
693+
/* output */
704694
(
705-
"database.tx_size",
706-
value<uint64_t>(&configured.database.tx_size),
707-
"The minimum allocation of the tx table body, defaults to '15435744998'."
695+
"database.output_size",
696+
value<uint64_t>(&configured.database.output_size),
697+
"The minimum allocation of the output table body, defaults to '24315563831'."
708698
)
709699
(
710-
"database.tx_rate",
711-
value<uint16_t>(&configured.database.tx_rate),
712-
"The percentage expansion of the tx table body, defaults to '5'."
700+
"database.output_rate",
701+
value<uint16_t>(&configured.database.output_rate),
702+
"The percentage expansion of the output table body, defaults to '5'."
713703
)
714704

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

722+
/* puts */
723+
(
724+
"database.puts_size",
725+
value<uint64_t>(&configured.database.puts_size),
726+
"The minimum allocation of the puts table body, defaults to '6059682874'."
727+
)
728+
(
729+
"database.puts_rate",
730+
value<uint16_t>(&configured.database.puts_rate),
731+
"The percentage expansion of the puts table body, defaults to '5'."
732+
)
733+
732734
/* spend */
733735
(
734736
"database.spend_buckets",
@@ -746,40 +748,38 @@ options_metadata parser::load_settings() THROWS
746748
"The percentage expansion of the spend table body, defaults to '5'."
747749
)
748750

749-
/* puts */
751+
/* tx */
750752
(
751-
"database.puts_size",
752-
value<uint64_t>(&configured.database.puts_size),
753-
"The minimum allocation of the puts table body, defaults to '6059682874'."
753+
"database.tx_buckets",
754+
value<uint32_t>(&configured.database.tx_buckets),
755+
"The number of buckets in the tx table head, defaults to '551320125'."
754756
)
755757
(
756-
"database.puts_rate",
757-
value<uint16_t>(&configured.database.puts_rate),
758-
"The percentage expansion of the puts table body, defaults to '5'."
758+
"database.tx_size",
759+
value<uint64_t>(&configured.database.tx_size),
760+
"The minimum allocation of the tx table body, defaults to '15435744998'."
759761
)
760-
761-
/* input */
762762
(
763-
"database.input_size",
764-
value<uint64_t>(&configured.database.input_size),
765-
"The minimum allocation of the input table body, defaults to '90116786234'."
763+
"database.tx_rate",
764+
value<uint16_t>(&configured.database.tx_rate),
765+
"The percentage expansion of the tx table body, defaults to '5'."
766766
)
767+
768+
/* txs */
767769
(
768-
"database.input_rate",
769-
value<uint16_t>(&configured.database.input_rate),
770-
"The percentage expansion of the input table body, defaults to '5'."
770+
"database.txs_buckets",
771+
value<uint32_t>(&configured.database.txs_buckets),
772+
"The number of buckets in the txs table head, defaults to '524493'."
771773
)
772-
773-
/* output */
774774
(
775-
"database.output_size",
776-
value<uint64_t>(&configured.database.output_size),
777-
"The minimum allocation of the output table body, defaults to '24315563831'."
775+
"database.txs_size",
776+
value<uint64_t>(&configured.database.txs_size),
777+
"The minimum allocation of the txs table body, defaults to '999581257'."
778778
)
779779
(
780-
"database.output_rate",
781-
value<uint16_t>(&configured.database.output_rate),
782-
"The percentage expansion of the output table body, defaults to '5'."
780+
"database.txs_rate",
781+
value<uint16_t>(&configured.database.txs_rate),
782+
"The percentage expansion of the txs table body, defaults to '5'."
783783
)
784784

785785
/* candidate */
@@ -832,7 +832,7 @@ options_metadata parser::load_settings() THROWS
832832
(
833833
"database.prevout_size",
834834
value<uint64_t>(&configured.database.prevout_size),
835-
"The minimum allocation of the prevout table body, defaults to '5000000'."
835+
"The minimum allocation of the prevout table body, defaults to '2000000000'."
836836
)
837837
(
838838
"database.prevout_rate",

0 commit comments

Comments
 (0)