Ensure that requirements are lowercase
This commit is contained in:
parent
be6974773b
commit
dd26293da2
|
@ -107,6 +107,12 @@ public final class PbcVanityAddressSearcher {
|
||||||
if (!prefix.startsWith("00")) {
|
if (!prefix.startsWith("00")) {
|
||||||
throw new IllegalArgumentException("Vanity prefix must start with 00.");
|
throw new IllegalArgumentException("Vanity prefix must start with 00.");
|
||||||
}
|
}
|
||||||
|
if (!prefix.toLowerCase().equals(prefix)) {
|
||||||
|
throw new IllegalArgumentException("Vanity prefix must be lowercase");
|
||||||
|
}
|
||||||
|
if (!suffix.toLowerCase().equals(suffix)) {
|
||||||
|
throw new IllegalArgumentException("Vanity suffix must be lowercase");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Whether the given address satisfies the requirements. */
|
/** Whether the given address satisfies the requirements. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user