mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	Minimum tx fee for entering pool
This commit is contained in:
		
							parent
							
								
									8e99cee062
								
							
						
					
					
						commit
						d9f3421ce7
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -59,6 +59,14 @@ namespace cryptonote
 | 
			
		|||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    uint64_t fee = inputs_amount - outputs_amount;
 | 
			
		||||
    if (!kept_by_block && fee < DEFAULT_FEE)
 | 
			
		||||
    {
 | 
			
		||||
      LOG_ERROR("transaction fee is not enough: " << print_money(fee) << ", minumim fee: " << print_money(DEFAULT_FEE));
 | 
			
		||||
      tvc.m_verifivation_failed = true;
 | 
			
		||||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!kept_by_block && blob_size >= TRANSACTION_SIZE_LIMIT)
 | 
			
		||||
    {
 | 
			
		||||
      LOG_ERROR("transaction is too big: " << blob_size << " bytes, maximum size: " << TRANSACTION_SIZE_LIMIT);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue