mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
ToyWallet -> SPVBlockStore.
This commit is contained in:
parent
de653cc42d
commit
97bce595c3
@ -21,6 +21,7 @@ import com.google.bitcoin.discovery.DnsDiscovery;
|
|||||||
import com.google.bitcoin.discovery.IrcDiscovery;
|
import com.google.bitcoin.discovery.IrcDiscovery;
|
||||||
import com.google.bitcoin.store.BoundedOverheadBlockStore;
|
import com.google.bitcoin.store.BoundedOverheadBlockStore;
|
||||||
import com.google.bitcoin.store.H2FullPrunedBlockStore;
|
import com.google.bitcoin.store.H2FullPrunedBlockStore;
|
||||||
|
import com.google.bitcoin.store.SPVBlockStore;
|
||||||
import com.google.bitcoin.utils.BriefLogFormatter;
|
import com.google.bitcoin.utils.BriefLogFormatter;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import org.spongycastle.util.encoders.Hex;
|
import org.spongycastle.util.encoders.Hex;
|
||||||
@ -168,7 +169,7 @@ public class ToyWallet {
|
|||||||
H2FullPrunedBlockStore store = new H2FullPrunedBlockStore(params, blockChainFile.getName(), 100);
|
H2FullPrunedBlockStore store = new H2FullPrunedBlockStore(params, blockChainFile.getName(), 100);
|
||||||
chain = new FullPrunedBlockChain(params, wallet, store);
|
chain = new FullPrunedBlockChain(params, wallet, store);
|
||||||
} else {
|
} else {
|
||||||
chain = new BlockChain(params, wallet, new BoundedOverheadBlockStore(params, blockChainFile));
|
chain = new BlockChain(params, wallet, new SPVBlockStore(params, blockChainFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
peerGroup = new PeerGroup(params, chain);
|
peerGroup = new PeerGroup(params, chain);
|
||||||
|
Loading…
Reference in New Issue
Block a user