mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	tx_memory_pool: make double spends a no-drop offense
Nodes who see different txs in a double spend attack will drop each other, splitting the network. Issue found by @boog900.
This commit is contained in:
		
							parent
							
								
									b23116424d
								
							
						
					
					
						commit
						eeb7c7c546
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -247,6 +247,7 @@ namespace cryptonote
 | 
			
		|||
        LOG_PRINT_L1("Transaction with id= "<< id << " used already spent key images");
 | 
			
		||||
        tvc.m_verifivation_failed = true;
 | 
			
		||||
        tvc.m_double_spend = true;
 | 
			
		||||
        tvc.m_no_drop_offense = true;
 | 
			
		||||
        return false;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue