Skip to content

Commit e03b110

Browse files
authored
Don't delete accounts with remaining balance (#1632)
1 parent 1835d84 commit e03b110

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crypto/block/transaction.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3295,6 +3295,9 @@ bool Transaction::compute_state(const SerializeConfig& cfg) {
32953295
acc_status = Account::acc_nonexist;
32963296
was_created = false;
32973297
}
3298+
if (acc_status == Account::acc_deleted && !balance.is_zero()) {
3299+
acc_status = Account::acc_uninit;
3300+
}
32983301
if (acc_status == Account::acc_nonexist || acc_status == Account::acc_deleted) {
32993302
CHECK(balance.is_zero());
33003303
vm::CellBuilder cb;

0 commit comments

Comments
 (0)