mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-20 10:12:19 +01:00
ForwardingService: move getPrefix() to end of file
This is meant to make the coming refactoring to CompletableFuture more readable. It was in the middle of three main methods.
This commit is contained in:
parent
95fb0ec3a4
commit
50f46651b4
@ -158,10 +158,6 @@ public class ForwardingService {
|
||||
});
|
||||
}
|
||||
|
||||
static String getPrefix(BitcoinNetwork network) {
|
||||
return String.format("forwarding-service-%s", network.toString());
|
||||
}
|
||||
|
||||
private void forwardCoins(Address forwardingAddress) {
|
||||
try {
|
||||
// Now send the coins onwards.
|
||||
@ -186,4 +182,8 @@ public class ForwardingService {
|
||||
public Address receivingAddress() {
|
||||
return kit.wallet().currentReceiveAddress();
|
||||
}
|
||||
|
||||
static String getPrefix(BitcoinNetwork network) {
|
||||
return String.format("forwarding-service-%s", network.toString());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user