mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix fetching mc config for runSmcMethod, fix caching in LS (#915)
Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
c7302bc4a3
commit
310dd6dec1
5 changed files with 51 additions and 4 deletions
|
@ -129,6 +129,15 @@ td::Status ShardStateQ::init() {
|
|||
" contains BlockId " + hdr_id.to_str() +
|
||||
" different from the one originally required");
|
||||
}
|
||||
if (info.r1.master_ref.write().fetch_long(1)) {
|
||||
BlockIdExt mc_id;
|
||||
if (!block::tlb::t_ExtBlkRef.unpack(info.r1.master_ref, mc_id, nullptr)) {
|
||||
return td::Status::Error(-668, "cannot unpack master_ref in shardchain state of "s + blkid.to_str());
|
||||
}
|
||||
master_ref = mc_id;
|
||||
} else {
|
||||
master_ref = {};
|
||||
}
|
||||
return td::Status::OK();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue