Hi,
I added backup wallet method for wallet on addCoinsReceivedEventListener
event (this is also called for send coin for change) like
kit.wallet().addCoinsReceivedEventListener(new
WalletCoinsReceivedEventListener() {
@Override
public void onCoinsReceived(Wallet w, final Transaction tx, Coin
prevBalance, Coin newBalance) {
{
..........
..........
backupWallet();
});
And in backupWallet() I used kit.wallet().*saveToFileStream*
(byteArrayOutputStream)
& mailing zip created from that byteArrayOutputStream.
I cross checked mail wallet file in project..all seems working.
Now if we have lot of traffic (i.e we create lot of receive addresses)
- so for such case *wallet file size* will increase day by day
- also for more traffic above way will try to backup file every seconds.
What is more proper way to do it ?
Regards,
Kunal
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.