mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Limit maximal Merkle depth (#626)
This commit is contained in:
parent
0578cb4a42
commit
706be23c83
12 changed files with 196 additions and 84 deletions
|
@ -225,6 +225,9 @@ bool AcceptBlockQuery::create_new_proof() {
|
|||
}
|
||||
// 5. finish constructing Merkle proof from visited cells
|
||||
auto proof = vm::MerkleProof::generate(block_root_, usage_tree.get());
|
||||
if (proof.is_null()) {
|
||||
return fatal_error("cannot create proof");
|
||||
}
|
||||
proof_roots_.push_back(proof);
|
||||
// 6. extract some information from state update
|
||||
state_old_hash_ = upd_cs.prefetch_ref(0)->get_hash(0).bits();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue