Skip to content

Commit 2a68c86

Browse files
authored
Merge pull request #1516 from ton-blockchain/fix-ls-capabilities
Fix get_prev_blocks_info() at LS getConfigParams [does not affect validators]
2 parents 050a984 + aef5381 commit 2a68c86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

validator/impl/liteserver.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,9 @@ void LiteQuery::continue_getConfigParams(int mode, std::vector<int> param_list)
19051905
}
19061906
cfg = res.move_as_ok();
19071907
} else {
1908+
if (mode & block::ConfigInfo::needPrevBlocks) {
1909+
mode |= block::ConfigInfo::needCapabilities;
1910+
}
19081911
auto res = block::ConfigInfo::extract_config(mpb.root(), mode);
19091912
if (res.is_error()) {
19101913
fatal_error(res.move_as_error());

0 commit comments

Comments
 (0)