mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 11:15:51 +00:00
Fix WalletTemplate now that checkpoints are included.
This commit is contained in:
parent
bb138e70c3
commit
9fa4afb5fe
@ -117,14 +117,7 @@ public class Main extends Application {
|
|||||||
// or progress widget to keep the user engaged whilst we initialise, but we don't.
|
// or progress widget to keep the user engaged whilst we initialise, but we don't.
|
||||||
if (params == RegTestParams.get()) {
|
if (params == RegTestParams.get()) {
|
||||||
bitcoin.connectToLocalHost(); // You should run a regtest mode bitcoind locally.
|
bitcoin.connectToLocalHost(); // You should run a regtest mode bitcoind locally.
|
||||||
} else if (params == MainNetParams.get()) {
|
|
||||||
// Checkpoints are block headers that ship inside our app: for a new user, we pick the last header
|
|
||||||
// in the checkpoints file and then download the rest from the network. It makes things much faster.
|
|
||||||
// Checkpoint files are made using the BuildCheckpoints tool and usually we have to download the
|
|
||||||
// last months worth or more (takes a few seconds).
|
|
||||||
bitcoin.setCheckpoints(getClass().getResourceAsStream("checkpoints"));
|
|
||||||
} else if (params == TestNet3Params.get()) {
|
} else if (params == TestNet3Params.get()) {
|
||||||
bitcoin.setCheckpoints(getClass().getResourceAsStream("org.bitcoin.test.checkpoints"));
|
|
||||||
// As an example!
|
// As an example!
|
||||||
bitcoin.useTor();
|
bitcoin.useTor();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user