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
|
@ -308,7 +308,7 @@ td::RefInt256 create_smartcontract(td::RefInt256 smc_addr, Ref<vm::Cell> code, R
|
|||
THRERR("cannot create smart-contract AccountStorage");
|
||||
Ref<vm::DataCell> storage = cb.finalize();
|
||||
vm::CellStorageStat stats;
|
||||
PDO(stats.compute_used_storage(Ref<vm::Cell>(storage)));
|
||||
PDO(stats.compute_used_storage(Ref<vm::Cell>(storage)).is_ok());
|
||||
if (verbosity > 2) {
|
||||
std::cerr << "storage is:\n";
|
||||
vm::load_cell_slice(storage).print_rec(std::cerr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue