Good day. Can you help me?

I create new wallet in this way

KeyChainGroup kg =  KeyChainGroup.builder(networkParameters).fromSeed(new 
DeterministicSeed(new SecureRandom(), 256, ""), 
Script.ScriptType.P2WPKH).build();
wallet = new Wallet(networkParameters, kg);


And then start to refreshing it 


BlockChain chain = new BlockChain(networkParameters, jWallet, blockStore);
peerGroup = new PeerGroup(networkParameters, chain);
peerGroup.addPeerDiscovery(new DnsDiscovery(networkParameters));


It takes a lot of time (25 min) even if i use checkpoints. Tried to set 
peerGroup.setFastCatchUpTime to current but it doesn't help.


So question, how can i set to refresh wallet with specific block height. I 
think in that way: if i ctreated fully new wallet, why i need to sync blockhain 
i can only check new block. I try to set wallet.setLastBlockSeenHeight to the 
most recent but it didn't help.


Can you tell if there is a way to do it? Or it's a wrong way. 

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bitcoinj+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to