@@ -121,7 +121,6 @@ void CLASS::do_organize(typename Block::cptr block,
121
121
// shared_ptr copy keeps block ref in scope until completion of set_code.
122
122
const auto & hash = block->get_hash ();
123
123
const auto & header = get_header (*block);
124
- const auto & query = archive ();
125
124
126
125
// Skip existing/orphan, get state.
127
126
// ........................................................................
@@ -238,7 +237,7 @@ void CLASS::do_organize(typename Block::cptr block,
238
237
auto index = top_candidate;
239
238
while (index > branch_point)
240
239
{
241
- if (!set_reorganized (query. to_candidate ( index ), index --))
240
+ if (!set_reorganized (index --))
242
241
{
243
242
handler (fault (error::organize5), height);
244
243
return ;
@@ -380,7 +379,7 @@ void CLASS::do_disorganize(header_t link) NOEXCEPT
380
379
const auto top_candidate = state_->height ();
381
380
for (auto index = top_candidate; index > fork_point; --index )
382
381
{
383
- if (!set_reorganized (query. to_candidate ( index ), index ))
382
+ if (!set_reorganized (index ))
384
383
{
385
384
fault (error::organize11);
386
385
return ;
@@ -425,8 +424,7 @@ void CLASS::do_disorganize(header_t link) NOEXCEPT
425
424
// ----------------------------------------------------------------------------
426
425
427
426
TEMPLATE
428
- bool CLASS::set_reorganized (const database::header_link& link,
429
- height_t candidate_height) NOEXCEPT
427
+ bool CLASS::set_reorganized (height_t candidate_height) NOEXCEPT
430
428
{
431
429
BC_ASSERT (stranded ());
432
430
BC_ASSERT (!is_under_checkpoint (candidate_height));
0 commit comments