ForwardingService: fix testnet parameter in parseNetwork()

This commit is contained in:
Andreas Schildbach 2022-07-10 20:50:25 +02:00
parent 42639c2d11
commit bca5faaba2

View File

@ -159,7 +159,7 @@ public class ForwardingService {
static Optional<BitcoinNetwork> parseNetwork(String networkOption) {
switch (networkOption) {
case "main": return Optional.of(BitcoinNetwork.MAIN);
case "test": return Optional.of(BitcoinNetwork.TEST);
case "testnet": return Optional.of(BitcoinNetwork.TEST);
case "regtest": return Optional.of(BitcoinNetwork.REGTEST);
case "signet": return Optional.of(BitcoinNetwork.SIGNET);
default: return Optional.empty();