1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Fix extracting version from config in tonlib (#748)

Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
EmelyanenkoK 2023-07-17 17:20:01 +03:00 committed by GitHub
parent 50d2361394
commit 6074702d05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,8 @@ td::Status LastConfig::process_config_proof(ton::ton_api::object_ptr<ton::lite_a
}
TRY_RESULT(state, block::check_extract_state_proof(blkid, raw_config->state_proof_.as_slice(),
raw_config->config_proof_.as_slice()));
TRY_RESULT(config, block::ConfigInfo::extract_config(std::move(state), block::ConfigInfo::needPrevBlocks));
TRY_RESULT(config, block::ConfigInfo::extract_config(
std::move(state), block::ConfigInfo::needPrevBlocks | block::ConfigInfo::needCapabilities));
for (auto i : params_) {
VLOG(last_config) << "ConfigParam(" << i << ") = ";