Skip to content

Commit 96a3d93

Browse files
authored
Merge pull request #753 from evoskuil/master
Set defaults to LF2.2 @ 850K.
2 parents 8ac3008 + d9cb8ca commit 96a3d93

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/parser.cpp

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ parser::parser(system::chain::selection context) NOEXCEPT
7070
configured.network.services_maximum = service::node_network |
7171
service::node_witness;
7272

73+
// SCALE: LF2.2 @ 850K.
74+
7375
// database (archive)
7476

75-
configured.database.header_buckets = 566'667;
77+
configured.database.header_buckets = 386'364;
7678
configured.database.header_size = 21'000'000;
7779
configured.database.header_rate = 5;
7880

@@ -82,7 +84,7 @@ parser::parser(system::chain::selection context) NOEXCEPT
8284
configured.database.output_size = 25'300'000'000;
8385
configured.database.output_rate = 5;
8486

85-
configured.database.point_buckets = 1'751'471'741;
87+
configured.database.point_buckets = 1'194'185'278;
8688
configured.database.point_size = 25'700'000'000;
8789
configured.database.point_rate = 5;
8890

@@ -92,11 +94,11 @@ parser::parser(system::chain::selection context) NOEXCEPT
9294
configured.database.outs_size = 3'700'000'000;
9395
configured.database.outs_rate = 5;
9496

95-
configured.database.tx_buckets = 688'193'037;
97+
configured.database.tx_buckets = 469'222'525;
9698
configured.database.tx_size = 17'000'000'000;
9799
configured.database.tx_rate = 5;
98100

99-
configured.database.txs_buckets = 566'667;
101+
configured.database.txs_buckets = 386'364;
100102
configured.database.txs_size = 1'050'000'000;
101103
configured.database.txs_rate = 5;
102104

@@ -108,8 +110,8 @@ parser::parser(system::chain::selection context) NOEXCEPT
108110
configured.database.confirmed_size = 2'575'500;
109111
configured.database.confirmed_rate = 5;
110112

111-
configured.database.strong_tx_buckets = 688'193'037;
112-
configured.database.strong_tx_size = 3'150'000'000;
113+
configured.database.strong_tx_buckets = 469'222'525;
114+
configured.database.strong_tx_size = 2'900'000'000;
113115
configured.database.strong_tx_rate = 5;
114116

115117
// database (caches)
@@ -122,7 +124,7 @@ parser::parser(system::chain::selection context) NOEXCEPT
122124
configured.database.prevout_size = 5'250'000'000;
123125
configured.database.prevout_rate = 5;
124126

125-
configured.database.validated_bk_buckets = 740'001;
127+
configured.database.validated_bk_buckets = 504'546;
126128
configured.database.validated_bk_size = 3'400'000;
127129
configured.database.validated_bk_rate = 5;
128130

@@ -665,7 +667,7 @@ options_metadata parser::load_settings() THROWS
665667
(
666668
"database.header_buckets",
667669
value<uint32_t>(&configured.database.header_buckets),
668-
"The log2 number of buckets in the header table head, defaults to '566667'."
670+
"The log2 number of buckets in the header table head, defaults to '386364'."
669671
)
670672
(
671673
"database.header_size",
@@ -706,7 +708,7 @@ options_metadata parser::load_settings() THROWS
706708
(
707709
"database.point_buckets",
708710
value<uint32_t>(&configured.database.point_buckets),
709-
"The log2 number of buckets in the spend table head, defaults to '1751471741'."
711+
"The log2 number of buckets in the spend table head, defaults to '1194185278'."
710712
)
711713
(
712714
"database.point_size",
@@ -747,7 +749,7 @@ options_metadata parser::load_settings() THROWS
747749
(
748750
"database.tx_buckets",
749751
value<uint32_t>(&configured.database.tx_buckets),
750-
"The log2 number of buckets in the tx table head, defaults to '688193037'."
752+
"The log2 number of buckets in the tx table head, defaults to '469222525'."
751753
)
752754
(
753755
"database.tx_size",
@@ -764,7 +766,7 @@ options_metadata parser::load_settings() THROWS
764766
(
765767
"database.txs_buckets",
766768
value<uint32_t>(&configured.database.txs_buckets),
767-
"The log2 number of buckets in the txs table head, defaults to '566667'."
769+
"The log2 number of buckets in the txs table head, defaults to '386364'."
768770
)
769771
(
770772
"database.txs_size",
@@ -805,12 +807,12 @@ options_metadata parser::load_settings() THROWS
805807
(
806808
"database.strong_tx_buckets",
807809
value<uint32_t>(&configured.database.strong_tx_buckets),
808-
"The log2 number of buckets in the strong_tx table head, defaults to '688193037'."
810+
"The log2 number of buckets in the strong_tx table head, defaults to '469222525'."
809811
)
810812
(
811813
"database.strong_tx_size",
812814
value<uint64_t>(&configured.database.strong_tx_size),
813-
"The minimum allocation of the strong_tx table body, defaults to '3150000000'."
815+
"The minimum allocation of the strong_tx table body, defaults to '2900000000'."
814816
)
815817
(
816818
"database.strong_tx_rate",
@@ -856,7 +858,7 @@ options_metadata parser::load_settings() THROWS
856858
(
857859
"database.validated_bk_buckets",
858860
value<uint32_t>(&configured.database.validated_bk_buckets),
859-
"The log2 number of buckets in the validated_bk table head, defaults to '740001'."
861+
"The log2 number of buckets in the validated_bk table head, defaults to '504546'."
860862
)
861863
(
862864
"database.validated_bk_size",

0 commit comments

Comments
 (0)