Skip to content

Commit

Permalink
Merge branch 'master' into ci/public_apt
Browse files Browse the repository at this point in the history
  • Loading branch information
qdrvm-ci committed Nov 22, 2024
2 parents 667288a + 6fc87df commit e9274cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/parachain/approval/approval_distribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3402,7 +3402,11 @@ namespace kagome::parachain {
libp2p::SharedFn{[&, promise{std::move(promise)}]() mutable {
promise.set_value(approvedAncestor(min, max));
}});
return future.get();
try {
return future.get();
} catch (std::future_error &) {
return block_tree_->getLastFinalized();
}
}

if (max.number <= min.number) {
Expand Down

0 comments on commit e9274cf

Please sign in to comment.