File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed
include/bitcoin/node/chasers Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ class BCN_API chaser_confirm
8989
9090 // These are thread safe.
9191 network::asio::strand independent_strand_;
92- bool prevout_;
9392};
9493
9594} // namespace node
Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
4040chaser_confirm::chaser_confirm (full_node& node) NOEXCEPT
4141 : chaser(node),
4242 threadpool_ (one, node.config().node.priority_()),
43- independent_strand_(threadpool_.service().get_executor()),
44- prevout_(node.archive().prevout_enabled())
43+ independent_strand_(threadpool_.service().get_executor())
4544{
4645}
4746
@@ -194,13 +193,6 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
194193 }
195194 else if (ec == database::error::block_valid)
196195 {
197- // Set before if not using prevout table.
198- if (!prevout_ && !query.set_strong (link))
199- {
200- fault (error::confirm2);
201- return ;
202- }
203-
204196 // Confirmation query.
205197 if ((ec = query.block_confirmable (link)))
206198 {
@@ -212,7 +204,7 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
212204 }
213205
214206 // Unset from set before if not using prevout table.
215- if (!prevout_ && ! query.set_unstrong (link))
207+ if (!query.set_unstrong (link))
216208 {
217209 fault (error::confirm3);
218210 return ;
@@ -238,7 +230,7 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
238230 }
239231
240232 // Set after if using prevout table.
241- if (prevout_ && !query.set_strong (link))
233+ if (!query.set_strong (link))
242234 {
243235 fault (error::confirm6);
244236 return ;
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ parser::parser(system::chain::selection context) NOEXCEPT
115115 // database (caches)
116116
117117 configured.database .prevout_buckets = 850'001 ;
118- configured.database .prevout_size = 2'600 '000'000 ;
118+ configured.database .prevout_size = 5'250 '000'000 ;
119119 configured.database .prevout_rate = 5 ;
120120
121121 configured.database .validated_tx_buckets = 0 ;
@@ -817,7 +817,7 @@ options_metadata parser::load_settings() THROWS
817817 (
818818 " database.prevout_size" ,
819819 value<uint64_t >(&configured.database .prevout_size ),
820- " The minimum allocation of the prevout table body, defaults to '2600000000 '."
820+ " The minimum allocation of the prevout table body, defaults to '5250000000 '."
821821 )
822822 (
823823 " database.prevout_rate" ,
You can’t perform that action at this time.
0 commit comments