@@ -36,13 +36,11 @@ using namespace std::placeholders;
36
36
37
37
BC_PUSH_WARNING (NO_THROW_IN_NOEXCEPT)
38
38
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).
41
40
chaser_confirm::chaser_confirm (full_node& node) NOEXCEPT
42
41
: chaser(node),
43
42
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())
46
44
{
47
45
}
48
46
@@ -195,13 +193,6 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
195
193
}
196
194
else if (ec == database::error::block_valid)
197
195
{
198
- // Set before if not using prevout table.
199
- if (!prevout_ && !query.set_strong (link ))
200
- {
201
- fault (error::confirm2);
202
- return ;
203
- }
204
-
205
196
// Confirmation query.
206
197
if ((ec = query.block_confirmable (link )))
207
198
{
@@ -213,7 +204,7 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
213
204
}
214
205
215
206
// Unset from set before if not using prevout table.
216
- if (!prevout_ && ! query.set_unstrong (link ))
207
+ if (!query.set_unstrong (link ))
217
208
{
218
209
fault (error::confirm3);
219
210
return ;
@@ -231,16 +222,15 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
231
222
return ;
232
223
}
233
224
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
+ }
241
231
242
232
// Set after if using prevout table.
243
- if (prevout_ && !query.set_strong (link ))
233
+ if (!query.set_strong (link ))
244
234
{
245
235
fault (error::confirm6);
246
236
return ;
0 commit comments