I am trying to create a service that allows users to create HDWallets and transact with them. I understand that the server will need to set up a peer group and build up it's block store (using FullPrunnedDatabaseStore btw) and so on...
However, is it possible for users arriving later (after the store is built up) to then create a new wallet and progress with the store as it continues to build up... I know when I create a new wallet I need to stop the peer group and readd all addresses I have thus far to a new instance of a peer group.
So here are the steps so far as I can think of
- Server starts
- Blockchain, and Store configured
- Any wallets that already exist are loaded
- utxoprovider specified on all wallets with blockstore... that may already be at chain height
- Peer group configured
- Peer group starts
- Weeks later new user = new wallet
- Wallet created
- utxoprovider specified on new wallet with blockstore... that may already be at chain height
- Peer group stops
- All wallets reloaded
- UTXOProvider specified for all loaded wallets
- Peer group starts
Is this a valid approach?