1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

New account storage stat

This commit is contained in:
SpyCheese 2025-02-28 18:00:36 +03:00
parent 44e7e091b2
commit 57d7c2a895
17 changed files with 479 additions and 177 deletions

View file

@ -773,6 +773,14 @@ bool CellSlice::prefetch_maybe_ref(Ref<vm::Cell>& res) const {
}
}
std::vector<Ref<Cell>> CellSlice::prefetch_all_refs() const {
std::vector<Ref<Cell>> res(size_refs());
for (unsigned i = 0; i < size_refs(); ++i) {
res[i] = prefetch_ref(i);
}
return res;
}
bool CellSlice::fetch_maybe_ref(Ref<vm::Cell>& res) {
auto z = prefetch_ulong(1);
if (!z) {