ForwardingService: split main() into main() and forward()

This commit is contained in:
Sean Gilligan 2022-07-15 10:18:32 -07:00 committed by Andreas Schildbach
parent ccba23bd29
commit 8e4cae391c

View File

@ -64,6 +64,10 @@ public class ForwardingService {
// Parse the address given as the first parameter.
var address = Address.fromString(NetworkParameters.of(network), args[0]);
forward(network, address);
}
public static void forward(BitcoinNetwork network, Address address) {
System.out.println("Network: " + network.id());
System.out.println("Forwarding address: " + address);