Closed GoogleCodeExporter closed 9 years ago
"Your" transactions are saved in your wallet, not the block store. Did you save
(and restore) the wallet?
See http://code.google.com/p/bitcoinj/wiki/WorkingWithTheWallet
Original comment by andreas....@gmail.com
on 23 May 2013 at 8:29
i checked docs but
wallet.clearTransaction(0);
deletes all transactions inside wallet but its not downloading back from
current block store.
Seems like i need to redownload 6+ GB for restoring a wallet ?
Original comment by kadir.ba...@gmail.com
on 23 May 2013 at 8:49
Resetting your wallet (aka Replaying your blockchain) is a bit tricky. You need
to shutdown all Peer(Group)s, remove your block store file and remove all
transactions from your wallet. Then you start up your Peer(Group) again.
You can use checkpoints and fast-catchup to make download (both initial and
replay) dramatically faster, but its not strictly necessary and can be seen as
an optimization.
Original comment by andreas....@gmail.com
on 23 May 2013 at 9:04
can you give code sample for restoring wallet as an example on git ?
it is very important for bitcoinj.
Original comment by kadir.ba...@gmail.com
on 23 May 2013 at 6:51
Have a look at ToyWallet from the examples or WalletTool from tools.
Can we take support cases like yours to the bitcoinj mailing list? The issue
tracker is not an appropriate place for this.
Original comment by andreas....@gmail.com
on 23 May 2013 at 8:43
Original issue reported on code.google.com by
kadir.ba...@gmail.com
on 23 May 2013 at 8:11