return CompletableFuture.supplyAsync(() ->
evalUnchecked(() -> {
final InetSocketAddress address = new InetSocketAddress(server.getHostText(), server.getPort());
final Socket socket = new Socket();
socket.connect(address, timeoutMsec);
return new PayFileClient(socket, bitcoin.wallet());
})
);
}