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

Separate limits for collated data

This commit is contained in:
SpyCheese 2024-03-26 12:50:01 +03:00
parent 3190c67f18
commit 103eb9aad5
5 changed files with 20 additions and 11 deletions

View file

@ -41,7 +41,6 @@ class NewCellStorageStat {
Stat(td::uint64 cells_, td::uint64 bits_, td::uint64 internal_refs_ = 0, td::uint64 external_refs_ = 0)
: cells(cells_), bits(bits_), internal_refs(internal_refs_), external_refs(external_refs_) {
}
Stat(const Stat&) = default;
td::uint64 cells{0};
td::uint64 bits{0};
td::uint64 internal_refs{0};
@ -53,6 +52,7 @@ class NewCellStorageStat {
bool operator==(const Stat& other) const {
return key() == other.key();
}
Stat(const Stat& other) = default;
Stat& operator=(const Stat& other) = default;
Stat& operator+=(const Stat& other) {
cells += other.cells;