3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 06:44:16 +00:00

WalletAppKit: configure Orchid/Tor to use the same directory as bitcoinj uses.

This commit is contained in:
Mike Hearn 2014-08-06 16:12:41 +02:00
parent 694b07ccd6
commit 047c5ccd03

View File

@ -378,7 +378,9 @@ public class WalletAppKit extends AbstractIdleService {
protected PeerGroup createPeerGroup() throws TimeoutException {
if (useTor) {
return PeerGroup.newWithTor(params, vChain, new TorClient());
TorClient torClient = new TorClient();
torClient.getConfig().setDataDirectory(directory);
return PeerGroup.newWithTor(params, vChain, torClient);
}
else
return new PeerGroup(params, vChain);