Skip to content

Commit 33a5a23

Browse files
committed
Remove dead code.
1 parent 8839251 commit 33a5a23

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

include/bitcoin/database/impl/query/consensus/consensus_forks.ipp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,10 @@ header_states CLASS::get_validated_fork(size_t& fork_point,
172172
fork_point = get_fork_();
173173
auto height = add1(fork_point);
174174
auto link = to_candidate(height);
175-
while (is_block_validated(ec, link, height, top_checkpoint) &&
176-
(!filter || is_filtered_body(link)))
175+
176+
// Filter body always written before validated, so the check is redundant.
177+
while (is_block_validated(ec, link, height, top_checkpoint)
178+
/*&& (!filter || is_filtered_body(link))*/)
177179
{
178180
out.emplace_back(link, ec);
179181
link = to_candidate(++height);

0 commit comments

Comments
 (0)