mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 13:22:42 +01:00
ForwardingService: split main() into main() and forward()
This commit is contained in:
parent
ccba23bd29
commit
8e4cae391c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user