Skip to content

Commit

Permalink
Merge pull request #1516 from ton-blockchain/fix-ls-capabilities
Browse files Browse the repository at this point in the history
Fix get_prev_blocks_info() at LS getConfigParams [does not affect validators]
  • Loading branch information
EmelyanenkoK authored Feb 6, 2025
2 parents 050a984 + aef5381 commit 2a68c86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions validator/impl/liteserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,9 @@ void LiteQuery::continue_getConfigParams(int mode, std::vector<int> param_list)
}
cfg = res.move_as_ok();
} else {
if (mode & block::ConfigInfo::needPrevBlocks) {
mode |= block::ConfigInfo::needCapabilities;
}
auto res = block::ConfigInfo::extract_config(mpb.root(), mode);
if (res.is_error()) {
fatal_error(res.move_as_error());
Expand Down

0 comments on commit 2a68c86

Please sign in to comment.