@@ -114,27 +114,37 @@ parser::parser(system::chain::selection context) NOEXCEPT
114114
115115 // database (caches)
116116
117+ configured.database .duplicate_buckets = 10 ;
118+ configured.database .duplicate_size = 44 ;
119+ configured.database .duplicate_rate = 5 ;
120+
117121 configured.database .prevout_buckets = 850'001 ;
118122 configured.database .prevout_size = 5'250'000'000 ;
119123 configured.database .prevout_rate = 5 ;
120124
121- configured.database .validated_tx_buckets = 1 ;
122- configured.database .validated_tx_size = 1 ;
123- configured.database .validated_tx_rate = 5 ;
124-
125125 configured.database .validated_bk_buckets = 740'001 ;
126126 configured.database .validated_bk_size = 3'400'000 ;
127127 configured.database .validated_bk_rate = 5 ;
128128
129+ configured.database .validated_tx_buckets = 1 ;
130+ configured.database .validated_tx_size = 1 ;
131+ configured.database .validated_tx_rate = 5 ;
132+
129133 // database (optionals)
130134
131135 configured.database .address_buckets = 1 ;
132136 configured.database .address_size = 1 ;
133137 configured.database .address_rate = 5 ;
134138
135- configured.database .neutrino_buckets = 1 ;
136- configured.database .neutrino_size = 1 ;
137- configured.database .neutrino_rate = 5 ;
139+ // also disabled by filter_tx
140+ configured.database .filter_bk_buckets = 1 ;
141+ configured.database .filter_bk_size = 1 ;
142+ configured.database .filter_bk_rate = 5 ;
143+
144+ // also disabled by filter_bk
145+ configured.database .filter_tx_buckets = 1 ;
146+ configured.database .filter_tx_size = 1 ;
147+ configured.database .filter_tx_rate = 5 ;
138148}
139149
140150options_metadata parser::load_options () THROWS
@@ -808,6 +818,23 @@ options_metadata parser::load_settings() THROWS
808818 " The percentage expansion of the strong_tx table body, defaults to '5'."
809819 )
810820
821+ /* duplicate */
822+ (
823+ " database.duplicate_buckets" ,
824+ value<uint16_t >(&configured.database .duplicate_buckets ),
825+ " The minimum number of buckets in the duplicate table head, defaults to '10'."
826+ )
827+ (
828+ " database.duplicate_size" ,
829+ value<uint64_t >(&configured.database .duplicate_size ),
830+ " The minimum allocation of the duplicate table body, defaults to '44'."
831+ )
832+ (
833+ " database.duplicate_rate" ,
834+ value<uint16_t >(&configured.database .duplicate_rate ),
835+ " The percentage expansion of the duplicate table, defaults to '5'."
836+ )
837+
811838 /* prevout */
812839 (
813840 " database.prevout_buckets" ,
@@ -822,24 +849,7 @@ options_metadata parser::load_settings() THROWS
822849 (
823850 " database.prevout_rate" ,
824851 value<uint16_t >(&configured.database .prevout_rate ),
825- " The percentage expansion of the prevout table and body, defaults to '5'."
826- )
827-
828- /* validated_tx */
829- (
830- " database.validated_tx_buckets" ,
831- value<uint32_t >(&configured.database .validated_tx_buckets ),
832- " The number of buckets in the validated_tx table head, defaults to '1' (0|1 disables)."
833- )
834- (
835- " database.validated_tx_size" ,
836- value<uint64_t >(&configured.database .validated_tx_size ),
837- " The minimum allocation of the validated_tx table body, defaults to '1'."
838- )
839- (
840- " database.validated_tx_rate" ,
841- value<uint16_t >(&configured.database .validated_tx_rate ),
842- " The percentage expansion of the validated_tx table body, defaults to '5'."
852+ " The percentage expansion of the prevout table, defaults to '5'."
843853 )
844854
845855 /* validated_bk */
@@ -859,6 +869,23 @@ options_metadata parser::load_settings() THROWS
859869 " The percentage expansion of the validated_bk table body, defaults to '5'."
860870 )
861871
872+ /* validated_tx */
873+ (
874+ " database.validated_tx_buckets" ,
875+ value<uint32_t >(&configured.database .validated_tx_buckets ),
876+ " The number of buckets in the validated_tx table head, defaults to '1' (0|1 disables)."
877+ )
878+ (
879+ " database.validated_tx_size" ,
880+ value<uint64_t >(&configured.database .validated_tx_size ),
881+ " The minimum allocation of the validated_tx table body, defaults to '1'."
882+ )
883+ (
884+ " database.validated_tx_rate" ,
885+ value<uint16_t >(&configured.database .validated_tx_rate ),
886+ " The percentage expansion of the validated_tx table body, defaults to '5'."
887+ )
888+
862889 /* address */
863890 (
864891 " database.address_buckets" ,
@@ -873,24 +900,41 @@ options_metadata parser::load_settings() THROWS
873900 (
874901 " database.address_rate" ,
875902 value<uint16_t >(&configured.database .address_rate ),
876- " The percentage expansion of the address table body, defaults to '0'."
903+ " The percentage expansion of the address table body, defaults to '5'."
904+ )
905+
906+ /* filter_bk */
907+ (
908+ " database.filter_bk_buckets" ,
909+ value<uint32_t >(&configured.database .filter_bk_buckets ),
910+ " The log2 number of buckets in the filter_bk table head, defaults to '1' (0|1 disables)."
911+ )
912+ (
913+ " database.filter_bk_size" ,
914+ value<uint64_t >(&configured.database .filter_bk_size ),
915+ " The minimum allocation of the filter_bk table body, defaults to '1'."
916+ )
917+ (
918+ " database.filter_bk_rate" ,
919+ value<uint16_t >(&configured.database .filter_bk_rate ),
920+ " The percentage expansion of the filter_bk table body, defaults to '5'."
877921 )
878922
879- /* neutrino */
923+ /* filter_tx */
880924 (
881- " database.neutrino_buckets " ,
882- value<uint32_t >(&configured.database .neutrino_buckets ),
883- " The log2 number of buckets in the neutrino table head, defaults to '1' (0|1 disables)."
925+ " database.filter_tx_buckets " ,
926+ value<uint32_t >(&configured.database .filter_tx_buckets ),
927+ " The log2 number of buckets in the filter_tx table head, defaults to '1' (0|1 disables)."
884928 )
885929 (
886- " database.neutrino_size " ,
887- value<uint64_t >(&configured.database .neutrino_size ),
888- " The minimum allocation of the neutrino table body, defaults to '1'."
930+ " database.filter_tx_size " ,
931+ value<uint64_t >(&configured.database .filter_tx_size ),
932+ " The minimum allocation of the filter_tx table body, defaults to '1'."
889933 )
890934 (
891- " database.neutrino_rate " ,
892- value<uint16_t >(&configured.database .neutrino_rate ),
893- " The percentage expansion of the neutrino table body, defaults to '0 '."
935+ " database.filter_tx_rate " ,
936+ value<uint16_t >(&configured.database .filter_tx_rate ),
937+ " The percentage expansion of the filter_tx table body, defaults to '5 '."
894938 )
895939
896940 /* [node] */
0 commit comments