mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 22:45:21 +01:00
Rearrange code positions
This commit is contained in:
parent
e9a0d7e3ff
commit
b5786f038f
3 changed files with 8 additions and 8 deletions
|
@ -108,7 +108,6 @@ public class CurrencyUtil {
|
|||
result.add(new CryptoCurrency("DCT", "DECENT"));
|
||||
result.add(new CryptoCurrency("DCR", "Decred"));
|
||||
result.add(new CryptoCurrency("ONION", "DeepOnion"));
|
||||
result.add(new CryptoCurrency("DIN", "Dinero"));
|
||||
result.add(new CryptoCurrency("DOGE", "Dogecoin"));
|
||||
result.add(new CryptoCurrency("DMC", "DynamicCoin"));
|
||||
result.add(new CryptoCurrency("ELLA", "Ellaism"));
|
||||
|
@ -173,6 +172,7 @@ public class CurrencyUtil {
|
|||
|
||||
// Added 0.7.0
|
||||
result.add(new CryptoCurrency("ALC", "Angelcoin"));
|
||||
result.add(new CryptoCurrency("DIN", "Dinero"));
|
||||
|
||||
result.sort(TradeCurrency::compareTo);
|
||||
|
||||
|
|
|
@ -264,7 +264,7 @@ public class TradeStatisticsManager {
|
|||
newlyAdded.add("ACH");
|
||||
newlyAdded.add("VDN");
|
||||
// v0.7.0
|
||||
coinsWithValidator.add("ALC");
|
||||
newlyAdded.add("ALC");
|
||||
newlyAdded.add("DIN");
|
||||
|
||||
coinsWithValidator.addAll(newlyAdded);
|
||||
|
|
|
@ -464,12 +464,6 @@ public final class AltCoinAddressValidator extends InputValidator {
|
|||
return regexTestFailed;
|
||||
else
|
||||
return new ValidationResult(true);
|
||||
case "DIN":
|
||||
if (!input.matches("^[D][0-9a-zA-Z]{33}$"))
|
||||
return regexTestFailed;
|
||||
else
|
||||
return new ValidationResult(true);
|
||||
|
||||
case "ALC":
|
||||
if (input.matches("^[A][a-km-zA-HJ-NP-Z1-9]{25,34}$")) {
|
||||
//noinspection ConstantConditions
|
||||
|
@ -482,6 +476,12 @@ public final class AltCoinAddressValidator extends InputValidator {
|
|||
} else {
|
||||
return regexTestFailed;
|
||||
}
|
||||
case "DIN":
|
||||
if (!input.matches("^[D][0-9a-zA-Z]{33}$"))
|
||||
return regexTestFailed;
|
||||
else
|
||||
return new ValidationResult(true);
|
||||
|
||||
// Add new coins at the end...
|
||||
default:
|
||||
log.debug("Validation for AltCoinAddress not implemented yet. currencyCode: " + currencyCode);
|
||||
|
|
Loading…
Add table
Reference in a new issue