Merge pull request #2096 from ManfredKarrer/remove-BCH

Remove BCH
This commit is contained in:
Manfred Karrer 2018-12-08 19:41:42 +01:00 committed by GitHub
commit 971a91eaf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 73 deletions

View file

@ -1,28 +0,0 @@
/*
* This file is part of Bisq.
*
* Bisq is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bisq is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/
package bisq.asset.coins;
import bisq.asset.Base58BitcoinAddressValidator;
import bisq.asset.Coin;
public class BitcoinCash extends Coin {
public BitcoinCash() {
super("Bitcoin Cash", "BCH", new Base58BitcoinAddressValidator());
}
}

View file

@ -3,7 +3,6 @@
# See bisq.asset.Asset and bisq.asset.AssetRegistry for further details. # See bisq.asset.Asset and bisq.asset.AssetRegistry for further details.
# See https://bisq.network/list-asset for complete instructions. # See https://bisq.network/list-asset for complete instructions.
bisq.asset.coins.Actinium bisq.asset.coins.Actinium
bisq.asset.coins.BitcoinCash
bisq.asset.coins.BitcoinClashic bisq.asset.coins.BitcoinClashic
bisq.asset.coins.BitcoinRhodium bisq.asset.coins.BitcoinRhodium
bisq.asset.coins.Bitcoin$Mainnet bisq.asset.coins.Bitcoin$Mainnet

View file

@ -1,43 +0,0 @@
/*
* This file is part of Bisq.
*
* Bisq is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bisq is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
* License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/
package bisq.asset.coins;
import bisq.asset.AbstractAssetTest;
import org.junit.Test;
public class BitcoinCashTest extends AbstractAssetTest {
public BitcoinCashTest() {
super(new BitcoinCash());
}
@Test
public void testValidAddresses() {
assertValidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSH");
assertValidAddress("1MEbUJ5v5MdDEqFJGz4SZp58KkaLdmXZ85");
assertValidAddress("34dvotXMg5Gxc37TBVV2e5GUAfCFu7Ms4g");
}
@Test
public void testInvalidAddresses() {
assertInvalidAddress("21HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSHa");
assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSHs");
assertInvalidAddress("1HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSH#");
}
}

View file

@ -152,7 +152,6 @@ public class AltCoinAccountsView extends PaymentAccountsView<GridPane, AltCoinAc
.useIUnderstandButton() .useIUnderstandButton()
.show(); .show();
break; break;
case "BCH":
case "BCHC": case "BCHC":
new Popup<>().information(Res.get("account.altcoin.popup.bch")) new Popup<>().information(Res.get("account.altcoin.popup.bch"))
.useIUnderstandButton() .useIUnderstandButton()