3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 02:05:53 +00:00

WalletTemplate: use Tor by default on testnet.

This commit is contained in:
Mike Hearn 2014-08-28 14:45:19 +02:00
parent b1176e0fdf
commit e4e8271b47

View File

@ -123,10 +123,10 @@ public class Main extends Application {
// Checkpoint files are made using the BuildCheckpoints tool and usually we have to download the // Checkpoint files are made using the BuildCheckpoints tool and usually we have to download the
// last months worth or more (takes a few seconds). // last months worth or more (takes a few seconds).
bitcoin.setCheckpoints(getClass().getResourceAsStream("checkpoints")); bitcoin.setCheckpoints(getClass().getResourceAsStream("checkpoints"));
// As an example!
// bitcoin.useTor();
} else if (params == TestNet3Params.get()) { } else if (params == TestNet3Params.get()) {
bitcoin.setCheckpoints(getClass().getResourceAsStream("checkpoints.testnet")); bitcoin.setCheckpoints(getClass().getResourceAsStream("checkpoints.testnet"));
// As an example!
bitcoin.useTor();
} }
bitcoin.setDownloadListener(controller.progressBarUpdater()) bitcoin.setDownloadListener(controller.progressBarUpdater())
.setBlockingStartup(false) .setBlockingStartup(false)