Bitcoin Forum
May 14, 2024, 03:24:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Copying pruned blockchain with new wallet  (Read 603 times)
classicsucks (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 504


View Profile
May 24, 2017, 09:20:09 PM
Merited by ABCbits (1)
 #1

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.
1715657083
Hero Member
*
Offline Offline

Posts: 1715657083

View Profile Personal Message (Offline)

Ignore
1715657083
Reply with quote  #2

1715657083
Report to moderator
1715657083
Hero Member
*
Offline Offline

Posts: 1715657083

View Profile Personal Message (Offline)

Ignore
1715657083
Reply with quote  #2

1715657083
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4186



View Profile
May 25, 2017, 12:22:29 AM
 #2

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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
May 25, 2017, 01:40:07 AM
 #3

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.
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4186



View Profile
May 25, 2017, 12:33:49 PM
Merited by ABCbits (2)
 #4

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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
classicsucks (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 504


View Profile
May 25, 2017, 02:53:33 PM
 #5

Thanks for the replies. I will just re-sync.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!