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
|
@ -221,6 +221,9 @@ Ref<Cell> MerkleUpdate::generate(Ref<Cell> from, Ref<Cell> to, CellUsageTree *us
|
|||
return {};
|
||||
}
|
||||
auto res = generate_raw(std::move(from), std::move(to), usage_tree);
|
||||
if (res.first.is_null() || res.second.is_null()) {
|
||||
return {};
|
||||
}
|
||||
return CellBuilder::create_merkle_update(res.first, res.second);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue