We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e03b110 commit 0cc297bCopy full SHA for 0cc297b
crypto/block/mc-config.cpp
@@ -542,6 +542,11 @@ td::Result<std::shared_ptr<ValidatorSet>> Config::unpack_validator_set(Ref<vm::C
542
if (vset_root.is_null()) {
543
return td::Status::Error("validator set is absent");
544
}
545
+ TRY_RESULT(loaded_root, vset_root->load_cell());
546
+ if (!loaded_root.tree_node.empty()) {
547
+ // Do not use cache during Merkle proof generation
548
+ use_cache = false;
549
+ }
550
static ValidatorSetCache cache;
551
if (use_cache) {
552
auto result = cache.get(vset_root->get_hash());
0 commit comments