@@ -36,13 +36,11 @@ using namespace std::placeholders;
3636
3737BC_PUSH_WARNING (NO_THROW_IN_NOEXCEPT)
3838
39- // Single higher priority thread strand (base class strand uses network pool).
40- // Higher priority than validator ensures locality to validator reads.
39+ // Independent threadpool and strand (base class strand uses network pool).
4140chaser_confirm::chaser_confirm (full_node& node) NOEXCEPT
4241 : chaser(node),
4342 threadpool_ (one, node.config().node.priority_()),
44- independent_strand_(threadpool_.service().get_executor()),
45- prevout_(node.archive().prevout_enabled())
43+ independent_strand_(threadpool_.service().get_executor())
4644{
4745}
4846
@@ -195,13 +193,6 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
195193 }
196194 else if (ec == database::error::block_valid)
197195 {
198- // Set before if not using prevout table.
199- if (!prevout_ && !query.set_strong (link))
200- {
201- fault (error::confirm2);
202- return ;
203- }
204-
205196 // Confirmation query.
206197 if ((ec = query.block_confirmable (link)))
207198 {
@@ -213,7 +204,7 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
213204 }
214205
215206 // Unset from set before if not using prevout table.
216- if (!prevout_ && ! query.set_unstrong (link))
207+ if (!query.set_unstrong (link))
217208 {
218209 fault (error::confirm3);
219210 return ;
@@ -231,16 +222,15 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
231222 return ;
232223 }
233224
234- // This is not necessary and may overflow the table link. Faster to
235- // never do it and redo a tiny number of blocks in case of reorg.
236- // //if (!query.set_block_confirmable(link))
237- // //{
238- // // fault(error::confirm5);
239- // // return;
240- // //}
225+ // Otherwise we will reconfirm entire chain on restart.
226+ if (!query.set_block_confirmable (link))
227+ {
228+ fault (error::confirm5);
229+ return ;
230+ }
241231
242232 // Set after if using prevout table.
243- if (prevout_ && !query.set_strong (link))
233+ if (!query.set_strong (link))
244234 {
245235 fault (error::confirm6);
246236 return ;
0 commit comments