Bitcoin Forum
May 02, 2024, 07:36:16 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoincore in PRUNE mode with new wallet.dat file  (Read 207 times)
CryptoBuzzerd (OP)
Jr. Member
*
Offline Offline

Activity: 188
Merit: 2

In Blockchain we trust!


View Profile WWW
December 08, 2019, 11:06:54 AM
Merited by LoyceV (1)
 #1

Bitcoincore PRUNE mode needs rebuild whole blockchain from scratch when changing wallet.dat file - is it normal? Is it possible to change it him behavior? I have some back-up copies different bitcoincore wallet.dat files - but in PRUNE mode (PRUNE=500) it restart syncing every time I've replace wallet.dat file to another copy. Sure, every time I have close bitcoincore wallet, and some times even reboot PC before replacing. Also trying PRUNE=1000, and 3000, also 50 000 - result the same. So what option need enable (or disable) for correct replacing different wallet.dat files in prune mode without full syncing?

Your own crypto exchange in your pocket - buy/sell BTC, LTC, ETH for USD/EUR, no KYC or any docks (https://t.me/AnyCashBot?start=promo-jump61)
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714678576
Hero Member
*
Offline Offline

Posts: 1714678576

View Profile Personal Message (Offline)

Ignore
1714678576
Reply with quote  #2

1714678576
Report to moderator
1714678576
Hero Member
*
Offline Offline

Posts: 1714678576

View Profile Personal Message (Offline)

Ignore
1714678576
Reply with quote  #2

1714678576
Report to moderator
1714678576
Hero Member
*
Offline Offline

Posts: 1714678576

View Profile Personal Message (Offline)

Ignore
1714678576
Reply with quote  #2

1714678576
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4165


View Profile
December 08, 2019, 11:10:09 AM
 #2

Enabling the pruning option means that the client deletes the unnecessary parts of the blockchain as it synchronises. The client will retain the information that is relevant to the addresses in the wallet.dat while discarding the rest.

Your wallet cannot have the full transaction history without the client synchronising from scratch.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5581


Self-proclaimed Genius


View Profile
December 08, 2019, 12:00:45 PM
 #3

Also trying PRUNE=1000, and 3000, also 50 000 - result the same. So what option need enable (or disable) for correct replacing different wallet.dat files in prune mode without full syncing?
Even if you managed to set it to 90% of the total blockchain size, it will have to rebuild from scratch because the chain needs to start from the genesis block and the few first blocks which are the first ones that will get deleted if your node was pruned.

Just disable pruning,
if you have the resources to sync a prune node, you might have the funds to buy a cheap 1TB/350GB/500GB HDD.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
CryptoBuzzerd (OP)
Jr. Member
*
Offline Offline

Activity: 188
Merit: 2

In Blockchain we trust!


View Profile WWW
December 08, 2019, 03:01:01 PM
 #4

It's a known issue (https://github.com/bitcoin/bitcoin/issues/9409), but there's no plan to support changing wallet.dat without sync whole blockchain again.

4. Run Electrum server and configure your Electrum only connect to your Electrum server

"4. Run Electrum server and configure your Electrum only connect to your Electrum server" - how it can help me to use many different wallet.dat files?

Your own crypto exchange in your pocket - buy/sell BTC, LTC, ETH for USD/EUR, no KYC or any docks (https://t.me/AnyCashBot?start=promo-jump61)
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16583


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
December 08, 2019, 03:40:24 PM
 #5

Even if you managed to set it to 90% of the total blockchain size, it will have to rebuild from scratch because the chain needs to start from the genesis block and the few first blocks which are the first ones that will get deleted if your node was pruned.
You indeed can't retroactively increase the pruned size to restore an older wallet. But for future use, this can help:
I've used Bitcoin Core with "Prune block storage 99 GB" for a while, and that was enough to restore wallets from a long time ago. As long as the wallet.dat is used before your oldest block gets pruned, you have all the blocks needed to completely update that wallet.

If CryptoBuzzerd updates all his wallet.dat files now, he can prune Bitcoin Core again as long as he loads each wallet once in a while.

NeuroticFish
Legendary
*
Offline Offline

Activity: 3654
Merit: 6372


Looking for campaign manager? Contact icopress!


View Profile
December 08, 2019, 03:48:05 PM
 #6

4. Run Electrum server and configure your Electrum only connect to your Electrum server

I don't know how would this help, sorry. ElectrumX needs Bitcoind and the whole blockchain.

You must to be running a non-pruning bitcoin daemon


OP, if you change frequently the wallet file, I think that you need either a non-pruning Bitcoin wallet, either an Electrum (client) with default settings (if that's OK for you on privacy).
Or maybe you rethink what you do there and find a way to not change the wallet files. OR, for example if you have a (very) small number of them, you keep switching maybe you trick it with symlinks to point to the correct data folder depending on the wallet you use (of course, you'll still download the whole blockchain once for each wallet).

But I think that Electrum could be just fine.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
CryptoBuzzerd (OP)
Jr. Member
*
Offline Offline

Activity: 188
Merit: 2

In Blockchain we trust!


View Profile WWW
December 08, 2019, 09:31:53 PM
 #7

Thanks to all for your messages, I appreciated with it. So I got info I need - it is restriction of Bitcoincore itself, so I'm giving up in this situation. But this info is VERY useful, and I still can be done some things using it.

Your own crypto exchange in your pocket - buy/sell BTC, LTC, ETH for USD/EUR, no KYC or any docks (https://t.me/AnyCashBot?start=promo-jump61)
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!