mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 13:22:42 +01:00
ForwardingService: fix testnet parameter in parseNetwork()
This commit is contained in:
parent
42639c2d11
commit
bca5faaba2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user