Skip to content

Commit

Permalink
GH-529 Allow terminate-at-block to be triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 19, 2024
1 parent 4e8070b commit 6bc2899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3985,7 +3985,7 @@ struct controller_impl {
}

bool best_head = false;
if (!should_terminate(bsp->block_num())) {
if (!should_terminate(bsp->block_num() - 1)) { // we want to process terminate block, so -1 to allow it to pass
best_head = forkdb.add(bsp, ignore_duplicate_t::yes);
if constexpr (savanna_mode)
vote_processor.notify_new_block(async_aggregation);
Expand Down

0 comments on commit 6bc2899

Please sign in to comment.