mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated smartcontracts
- updated smartcontracts - updated fullnode database layout - fixed memory leak in blockchain-explorer - updated tonlib
This commit is contained in:
parent
9c9248a9ae
commit
c860ce3d1e
104 changed files with 7309 additions and 1335 deletions
|
@ -59,6 +59,7 @@ struct BlockHandleImpl : public BlockHandleInterface {
|
|||
dbf_moved = 0x1000000,
|
||||
dbf_deleted = 0x2000000,
|
||||
dbf_deleted_boc = 0x4000000,
|
||||
dbf_moved_new = 0x8000000,
|
||||
dbf_processed = 0x10000000,
|
||||
};
|
||||
|
||||
|
@ -95,6 +96,9 @@ struct BlockHandleImpl : public BlockHandleInterface {
|
|||
bool moved_to_storage() const override {
|
||||
return flags_.load(std::memory_order_consume) & Flags::dbf_moved;
|
||||
}
|
||||
bool moved_to_archive() const override {
|
||||
return flags_.load(std::memory_order_consume) & Flags::dbf_moved_new;
|
||||
}
|
||||
bool deleted() const override {
|
||||
return flags_.load(std::memory_order_consume) & Flags::dbf_deleted;
|
||||
}
|
||||
|
@ -393,6 +397,15 @@ struct BlockHandleImpl : public BlockHandleInterface {
|
|||
flags_ |= Flags::dbf_moved;
|
||||
unlock();
|
||||
}
|
||||
void set_moved_to_archive() override {
|
||||
if (flags_.load(std::memory_order_consume) & Flags::dbf_moved_new) {
|
||||
return;
|
||||
}
|
||||
lock();
|
||||
flags_ |= Flags::dbf_moved_new;
|
||||
flags_ &= ~Flags::dbf_moved;
|
||||
unlock();
|
||||
}
|
||||
void set_deleted() override {
|
||||
if (flags_.load(std::memory_order_consume) & Flags::dbf_deleted) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue