mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	Don't delete accounts with extra currencies (temporary) (#659)
This commit is contained in:
		
							parent
							
								
									b76158a753
								
							
						
					
					
						commit
						9be3701bc0
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -704,7 +704,9 @@ bool Transaction::prepare_storage_phase(const StoragePhaseConfig& cfg, bool forc
 | 
			
		|||
      switch (acc_status) {
 | 
			
		||||
        case Account::acc_uninit:
 | 
			
		||||
        case Account::acc_frozen:
 | 
			
		||||
          if (total_due > cfg.delete_due_limit) {
 | 
			
		||||
          if (total_due > cfg.delete_due_limit && balance.extra.is_null()) {
 | 
			
		||||
            // Keeping accounts with non-null extras is a temporary measure before implementing proper collection of
 | 
			
		||||
            // extracurrencies from deleted accounts
 | 
			
		||||
            res->deleted = true;
 | 
			
		||||
            acc_status = Account::acc_deleted;
 | 
			
		||||
            if (balance.extra.not_null()) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue