Skip to content

Commit d656cf7

Browse files
committed
Defer query init until use.
1 parent 4b87f36 commit d656cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chasers/chaser_confirm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ void chaser_confirm::do_bump(height_t) NOEXCEPT
133133
void chaser_confirm::do_bumped(height_t) NOEXCEPT
134134
{
135135
BC_ASSERT(stranded());
136-
const auto& query = archive();
137136

138137
if (closed())
139138
return;
@@ -144,6 +143,7 @@ void chaser_confirm::do_bumped(height_t) NOEXCEPT
144143

145144
// Guarded by candidate interlock.
146145
size_t fork_point{};
146+
const auto& query = archive();
147147
auto fork = query.get_validated_fork(fork_point, checkpoint(), filter_);
148148

149149
// Fork may be empty if candidates were reorganized.

0 commit comments

Comments
 (0)