Generally, you need to keep all wallets connected while your PeerGroup
is running. As soon as you disconnect a wallet, it will get out of sync.
You can replay out of sync wallets, but you'll need to reset these
wallets and all other connected wallets, plus remove the blockchain so
it can start from genesis (or an appropriate checkpoint if you use
checkpoints).

Bitcoinj doesn't scale to many wallets. The "one PeerGroup per Wallet"
approach has afaik never been tested; it's probably best to run each
such combination in a separate VM.


On 10/15/2017 02:04 AM, alexfieldman...@gmail.com wrote:
> Can somebody please explain if it is possible to start a
> blockchain/store/peergroup, and add a wallet at a later time, disconnect
> it and let the chain run (24/7), then reconnect the wallet and catchup
> with the chain?
> 
> or even just have a BlockChain for every wallet but somehow not need to
> store.reset and startDownload() just to see some blocks? i also couldnt
> leave countless wallets constantly listening on the chain at all times,
> it would be so inefficient.
> 
> 
> I am using fullprunedblockchain and MYSQLFullPrunedBlockStore, i should
> be able to replay the chain to the wallet but its not working.
> 
> I cant have a peer group for every single wallet, connecting and
> downloading a new blockstore for every wallet that is made, that would
> be chaos on a server side environment.
> 
> can anybody tell me what i can do here short of writing in my own
> classes to pull from the blockstore? (id have no idea where to begin for
> this)

-- 
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