mirror of
				https://github.com/OutCast3k/coinbin.git
				synced 2025-11-04 01:33:33 +01:00 
			
		
		
		
	set appropriate hrp for Litecoin SegWit addresses
set chain.so/address/LTC for view of address (previously was referencing BTC block explorer)
This commit is contained in:
		
							parent
							
								
									10aa011c6e
								
							
						
					
					
						commit
						e6c70d133b
					
				@ -1806,6 +1806,14 @@ $(document).ready(function() {
 | 
				
			|||||||
			configureBroadcast();
 | 
								configureBroadcast();
 | 
				
			||||||
			configureGetUnspentTx();
 | 
								configureGetUnspentTx();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if (coinjs.pub == 0x30){   // LTC
 | 
				
			||||||
 | 
					                explorer_addr = "https://chain.so/address/LTC/";
 | 
				
			||||||
 | 
					                coinjs.bech32.hrp = "ltc";
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            else if (coinjs.pub == 0x1e){   // DOGE
 | 
				
			||||||
 | 
					                explorer_addr = "https://chain.so/address/DOGE/";
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			$("#statusSettings").addClass("alert-success").removeClass("hidden").html("<span class=\"glyphicon glyphicon-ok\"></span> Settings updates successfully").fadeOut().fadeIn();	
 | 
								$("#statusSettings").addClass("alert-success").removeClass("hidden").html("<span class=\"glyphicon glyphicon-ok\"></span> Settings updates successfully").fadeOut().fadeIn();	
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			$("#statusSettings").addClass("alert-danger").removeClass("hidden").html("There is an error with one or more of your settings");	
 | 
								$("#statusSettings").addClass("alert-danger").removeClass("hidden").html("There is an error with one or more of your settings");	
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user