yamada
2019-04-17 00:02:00 +09:00
parent 478e54ad47
commit d0889ab9de
3 changed files with 66 additions and 12 deletions

View File

@@ -952,6 +952,13 @@
address = bchaddr.toBitpayAddress(address);
}
}
// Bitcoin Cash address format may vary
if (networks[DOM.network.val()].name == "SLP - Simple Ledger Protocol") {
var bchAddrType = DOM.bitcoinCashAddressType.filter(":checked").val();
if (bchAddrType == "cashaddr") {
address = bchaddr.toSlpAddress(address);
}
}
// Segwit addresses are different
if (isSegwit) {
if (!segwitAvailable) {
@@ -1718,7 +1725,7 @@
network = bitcoinjs.bitcoin.networks.blocknode;
setHdCoin(2941);
},
},
},
{
name: "tBND - Blocknode Testnet",
onSelect: function() {
@@ -2486,6 +2493,13 @@
setHdCoin(111);
},
},
{
name: "SLP - Simple Ledger Protocol",
onSelect: function() {
DOM.bitcoinCashAddressTypeContainer.removeClass("hidden");
setHdCoin(245);
},
},
{
name: "SLR - Solarcoin",
onSelect: function() {