ForwardingService: add signet support

This commit is contained in:
Sean Gilligan 2022-06-29 10:48:05 -07:00 committed by Andreas Schildbach
parent 24d0e68725
commit 42639c2d11

View File

@ -51,7 +51,7 @@ public class ForwardingService {
// This line makes the log output more compact and easily read, especially when using the JDK log adapter.
BriefLogFormatter.init();
if (args.length < 1) {
System.err.println("Usage: address-to-send-back-to [main|regtest|testnet]");
System.err.println("Usage: address-to-send-back-to [main|regtest|testnet|signet]");
return;
}
@ -161,6 +161,7 @@ public class ForwardingService {
case "main": return Optional.of(BitcoinNetwork.MAIN);
case "test": return Optional.of(BitcoinNetwork.TEST);
case "regtest": return Optional.of(BitcoinNetwork.REGTEST);
case "signet": return Optional.of(BitcoinNetwork.SIGNET);
default: return Optional.empty();
}
}