Author

Topic: Copying pruned blockchain with new wallet (Read 615 times)

hero member
Activity: 686
Merit: 504
May 25, 2017, 09:53:33 AM
#5
Thanks for the replies. I will just re-sync.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
Interesting.  I haven't run a pruned wallet yet, and I didn't realize that you couldn't start a new wallet with a pruned blockchain.
It applies for importing private keys as well.
ranochigo states that "the client cannot accurately obtain all the transactions related to your wallet", but if its a new wallet then there shouldn't be any transactions related to the wallet yet.

Additionally, doesn't a pruned node still keep the full UTXO?  If so, it should still be able to figure out which unspent transaction outputs are yours.
To my understanding, Bitcoin Core automatically assumes the addresses that were imported in after or during the synchronization to have transactions associated with it already. This applies for the changing of wallet.dat.

They do. They can compute the balance of the address but they cannot get all the transactions related to the address since the blockchain is pruned. Even though it is possible for users to spend their Bitcoin, they cannot see the history of the transaction beyond the point of time when it was imported. That is probably the main reason why they force a reindex.

It would be helpful for users to indicate if the address have transaction before the point of Blockchain prune but it may complicate things for the user if they don't understand it.
legendary
Activity: 3472
Merit: 4794
Interesting.  I haven't run a pruned wallet yet, and I didn't realize that you couldn't start a new wallet with a pruned blockchain.

ranochigo states that "the client cannot accurately obtain all the transactions related to your wallet", but if its a new wallet then there shouldn't be any transactions related to the wallet yet.

Additionally, doesn't a pruned node still keep the full UTXO?  If so, it should still be able to figure out which unspent transaction outputs are yours.

I'm sure there must be a reason not to allow creation of a new wallet.dat, I'm just not yet certain what that reason is.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
There is no workaround for that. Since the blockchain is pruned, it only has a limited number of blocks stored. The client has to rescan everytime you import an address. Without looking into every single block, the client cannot accurately obtain all the transactions related to your wallet and hence might omit some transactions.
hero member
Activity: 686
Merit: 504
I notice that if I copy a verified data directory that has a pruned blockchain, I can't create a new wallet without triggering a full re-sync.

Anyone have a workaround for this? Thanks.
Jump to: