Skip to content

Commit

Permalink
No validate until ungapped at current height.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Oct 23, 2024
1 parent 3c81431 commit 4e7adc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/chasers/chaser_validate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ void chaser_validate::do_bump(height_t) NOEXCEPT
const auto link = query.to_candidate(height);
const auto ec = query.get_block_state(link);

// Wait until the gap is filled.
if (ec == database::error::unassociated)
// TODO: make this more flexible/configurable.
// Wait until the gap is filled at a current height.
if (ec == database::error::unassociated || !is_current(link))
return;

// complete_block always follows and decrements.
Expand Down

0 comments on commit 4e7adc6

Please sign in to comment.