Bitcoin Forum
February 23, 2019, 01:52:54 AM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Disable pruning on a node with a pruned block chain  (Read 72 times)
darosior
Member
**
Offline Offline

Activity: 112
Merit: 121


View Profile WWW
January 19, 2019, 03:53:19 PM
 #1

Hi,

I had to prune a bitcoin-core node I run because of the available disk space. I'll manage to get more space in the coming week and I'll disable pruning. I was wondering : what will happen at this stage ? Since blocks were validated and then erased, will the node re-validate all my missing blocks and then every block on top of it ? This would make me revalidate the entire block chain.

Your Bitcoin transactions
The Ultimate Bitcoin mixer
made truly anonymous.
with an advanced technology.
Mix coins
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1550886774
Hero Member
*
Offline Offline

Posts: 1550886774

View Profile Personal Message (Offline)

Ignore
1550886774
Reply with quote  #2

1550886774
Report to moderator
1550886774
Hero Member
*
Offline Offline

Posts: 1550886774

View Profile Personal Message (Offline)

Ignore
1550886774
Reply with quote  #2

1550886774
Report to moderator
1550886774
Hero Member
*
Offline Offline

Posts: 1550886774

View Profile Personal Message (Offline)

Ignore
1550886774
Reply with quote  #2

1550886774
Report to moderator
aliashraf
Hero Member
*****
Offline Offline

Activity: 728
Merit: 586


View Profile
January 19, 2019, 04:19:00 PM
 #2

Hi,

I had to prune a bitcoin-core node I run because of the available disk space. I'll manage to get more space in the coming week and I'll disable pruning. I was wondering : what will happen at this stage ? Since blocks were validated and then erased, will the node re-validate all my missing blocks and then every block on top of it ? This would make me revalidate the entire block chain.
I'm not aware of any built in api in bitcoin to help it in a more efficient way than just a clean bootstrap but more importantly, I'm curious what the incentive would be if you are convinced about the validity of the chain your node is committed to and you have long enough chain length? Won't it suffice to just disable more pruning thereafter?
darosior
Member
**
Offline Offline

Activity: 112
Merit: 121


View Profile WWW
January 19, 2019, 04:23:35 PM
 #3

Won't it suffice to just disable more pruning thereafter?
I may have misexplained but disable pruning is what I want to do. If you are asking about the incentive of disabling it, I want to be able to set `txindex=1` and then run a transaction explorer.

ETFbitcoin
Legendary
*
Offline Offline

Activity: 1596
Merit: 1555

Use SegWit and enjoy lower fees.


View Profile WWW
January 19, 2019, 06:50:14 PM
 #4

AFAIK bitcoin core will re-download and re-verify all missing blocks

Won't it suffice to just disable more pruning thereafter?
I may have misexplained but disable pruning is what I want to do. If you are asking about the incentive of disabling it, I want to be able to set `txindex=1` and then run a transaction explorer.

I don't get what you're trying to tell. but you can't enable txindex if you enable prune mode

darosior
Member
**
Offline Offline

Activity: 112
Merit: 121


View Profile WWW
January 19, 2019, 07:25:26 PM
 #5

AFAIK bitcoin core will re-download and re-verify all missing blocks

Won't it suffice to just disable more pruning thereafter?
I may have misexplained but disable pruning is what I want to do. If you are asking about the incentive of disabling it, I want to be able to set `txindex=1` and then run a transaction explorer.

I don't get what you're trying to tell. but you can't enable txindex if you enable prune mode
That's exactly my point. I'll describe it step by step :
step 1 -> I have a pruned node
step 2 -> I disable pruning
step 3 -> The block chain is no longer pruned
I was just asking what happened between steps 2 and 3.

achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 1680
Merit: 2086


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


View Profile WWW
January 19, 2019, 07:31:22 PM
Merited by darosior (5), Foxpup (3), Wind_FURY (3), bones261 (2), ETFbitcoin (1)
 #6

That's exactly my point. I'll describe it step by step :
step 1 -> I have a pruned node
step 2 -> I disable pruning
step 3 -> The block chain is no longer pruned
I was just asking what happened between steps 2 and 3.
The blockchain will be redownloaded and reindexed. It is not validated again as the blocks being downloaded have already been validated and that information is stored. Only the blocks themselves will be downloaded and added to the block index.

Since you plan on enabled txindex too, you should disable pruning and enable txindex in the same step. That way the txindex will be built at the same time that the blocks are reindexed after they are downloaded. This will prevent you from having to reindex twice.

darosior
Member
**
Offline Offline

Activity: 112
Merit: 121


View Profile WWW
January 19, 2019, 07:40:20 PM
 #7

That's exactly my point. I'll describe it step by step :
step 1 -> I have a pruned node
step 2 -> I disable pruning
step 3 -> The block chain is no longer pruned
I was just asking what happened between steps 2 and 3.
The blockchain will be redownloaded and reindexed. It is not validated again as the blocks being downloaded have already been validated and that information is stored. Only the blocks themselves will be downloaded and added to the block index.

Since you plan on enabled txindex too, you should disable pruning and enable txindex in the same step. That way the txindex will be built at the same time that the blocks are reindexed after they are downloaded. This will prevent you from having to reindex twice.
Thank you for the clear answer and the advice.

Pages: [1]
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!