mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	Allow anycast destination address in masterchain (#807)
This commit is contained in:
		
							parent
							
								
									ba03657617
								
							
						
					
					
						commit
						909e7dbdfc
					
				
					 1 changed files with 0 additions and 5 deletions
				
			
		|  | @ -1976,11 +1976,6 @@ bool Transaction::check_rewrite_dest_addr(Ref<vm::CellSlice>& dest_addr, const A | |||
|   } | ||||
|   if (rec.anycast->size() > 1) { | ||||
|     // destination address is an anycast
 | ||||
|     if (rec.workchain_id == ton::masterchainId) { | ||||
|       // anycast addresses disabled in masterchain
 | ||||
|       LOG(DEBUG) << "masterchain destination address has an anycast field"; | ||||
|       return false; | ||||
|     } | ||||
|     vm::CellSlice cs{*rec.anycast}; | ||||
|     int d = (int)cs.fetch_ulong(6) - 32; | ||||
|     if (d <= 0 || d > 30) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue