mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Deactivate accounts upon destruction in block
This commit is contained in:
parent
1b480e39ba
commit
59fcd7cbd5
4 changed files with 45 additions and 30 deletions
|
@ -1944,7 +1944,6 @@ std::unique_ptr<block::Account> Collator::make_account_from(td::ConstBitPtr addr
|
|||
}
|
||||
auto ptr = std::make_unique<block::Account>(workchain(), addr);
|
||||
if (account.is_null()) {
|
||||
ptr->created = true;
|
||||
if (!ptr->init_new(now_)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -2273,10 +2272,6 @@ Ref<vm::Cell> Collator::create_ordinary_transaction(Ref<vm::Cell> msg_root) {
|
|||
|
||||
register_new_msgs(*trans);
|
||||
update_max_lt(acc->last_trans_end_lt_);
|
||||
// temporary patch to stop producing dangerous block
|
||||
if (acc->status == block::Account::acc_nonexist) {
|
||||
block_full_ = true;
|
||||
}
|
||||
return trans_root;
|
||||
}
|
||||
|
||||
|
@ -2495,10 +2490,6 @@ int Collator::process_one_new_message(block::NewOutMsg msg, bool enqueue_only, R
|
|||
if (!insert_out_msg(cb.finalize())) {
|
||||
return -1;
|
||||
}
|
||||
// 6.5. check for temporary patch can be left here
|
||||
if (block_full_) {
|
||||
return 3;
|
||||
}
|
||||
// 7. check whether the block is full now
|
||||
if (!block_limit_status_->fits(block::ParamLimits::cl_normal)) {
|
||||
block_full_ = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue