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:
Sean Gilligan 2022-07-16 14:40:46 -07:00 committed by Andreas Schildbach
parent 95fb0ec3a4
commit 50f46651b4

View File

@ -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());
}
}