Bitcoin Forum
April 28, 2025, 09:07:31 AM *
News: Merit Poker is still available for a limited time
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: deleted my blocks and chainstate directories  (Read 212 times)
callmejoe (OP)
Jr. Member
*
Offline Offline

Activity: 52
Merit: 22


View Profile WWW
April 12, 2025, 06:19:35 PM
 #1

hello there.  i accidentally deleted these directories.  i was running a pruned blockchain.  i was hoping that when i restarted the server it wouldn't have to download the entire blockchain since i have it set to prune=2000.  but it looks like it is downloading the entire chain.  so i stopped it since i do have another copy of it that i can copy over what i need.

but before i do that just wanted to do a quick verification that it's necessary to copy the entire chain before pruning.  maybe there is some magic alternative?? thanks Smiley 
Mia Chloe
Hero Member
*****
Offline Offline

Activity: 686
Merit: 1094


Contact me for your designs...


View Profile
April 12, 2025, 07:06:58 PM
Merited by pooya87 (4), nc50lc (1)
 #2

~snip
Pruning actually relies on a full download Initially Pruning doesn't mean it downloads only the last 2000 blocks. Instead, it downloads the entire chain and then discards older blocks according to your pruning setting. This is because the software needs to verify the entire history to ensure the integrity of the current state.

Now yours didn't work out because the deleted directories contain crucial data like the block index, chain state, and block data. Without them, the software can't reconstruct the chain's history or verify new blocks. The node actually needs to download all of the blocks in order to rebuild the index of the chain.

░░░▄████████████████████████
░▄████████████████████████████
████████████████████████████
████████████████████████████
█████████████████████████████
█████████████████████████████
██████████████████████████████
████████████████████████████▀
█████████████████████████▀
████████████████████
█████████████████████
██████████████████████
░░███████████████████▀
█████████████████████████
█████████████████████████
█████░▄▄█████████████████
█████░███████████████████
█████░███████░███████████
████████████░████████████
██████████░█████████████
██████████░██████████████
██████████░██████████████
██████████░██████████████
████████░████████████████
█████████████████████████
█████████████████████████
 100% 
WELCOME BONUS
 UP TO 15% 
CASHBACK
 NO KYC 
PROVABLY FAIR
█████████████████████████
█████████████████████████
█████████████████████████
█████░██░░██░██░░██░█████
████░████████████████████
█████████░░███░░█████████
█████░░██████████████████
███████░░████████████████
█████████░█████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
 
  Play Now  
callmejoe (OP)
Jr. Member
*
Offline Offline

Activity: 52
Merit: 22


View Profile WWW
April 12, 2025, 08:15:19 PM
 #3

thanks for the reply
ABCbits
Legendary
*
Offline Offline

Activity: 3220
Merit: 8706



View Profile
April 13, 2025, 08:15:27 AM
Merited by pooya87 (4)
 #4

since i have it set to prune=2000.

Pruning actually relies on a full download Initially Pruning doesn't mean it downloads only the last 2000 blocks.

FYI, prune=2000 actually means asking Bitcoin Core to store most recent blocks, up to 2000MB in size. In practice, it could be more or less than 2000 blocks depending on recent block size.

satscraper
Legendary
*
Offline Offline

Activity: 1078
Merit: 1842



View Profile
April 13, 2025, 10:35:23 AM
Last edit: April 26, 2025, 09:03:47 AM by satscraper
 #5

since i have it set to prune=2000.

Pruning actually relies on a full download Initially Pruning doesn't mean it downloads only the last 2000 blocks.

FYI, prune=2000 actually means asking Bitcoin Core to store most recent blocks, up to 2000MB in size. In practice, it could be more or less than 2000 blocks depending on recent block size.


The good things about this is that Bitcoin Core does it on the fly so even during IBD the required storage space can remain relatively small.

That said, I personally prefer running a full node with the copy of entire blockchain rather than a pruned one. Having the full blockchain gives me the flexibility to rescan the blockchain if I ever need to recover a wallet, which isn’t possible with a pruned setup.


▄███████████████████▄
████████████████████████

██████████▀▀▀▀██████████
███████████████▀▀███████
█████████▄▄███▄▄█████
████████▀▀████▀███████
█████████▄▄██▀██████████
████████████▄███████████
██████████████▄█████████
██████████▀▀███▀▀███████
███████████████████████
█████████▄▄████▄▄████████
▀███████████████████▀
.
 BC.GAME 
███████████████
███████████████
███████████████
███████████████
██████▀░▀██████
████▀░░░░░▀████
███░░░░░░░░░███
███▄░░▄░▄░░▄███
█████▀░░░▀█████

███████████████

███████████████

███████████████

███████████████
███████████████
███████████████
███████████████
███████████████
███░░▀░░░▀░░███
███░░▄▄▄░░▄████
███▄▄█▀░░▄█████
█████▀░░▐██████
█████░░░░██████

███████████████

███████████████

███████████████

███████████████
███████████████
███████████████
███████████████
███████████████
██████▀▀░▀▄░███
████▀░░▄░▄░▀███
███▀░░▀▄▀▄░▄███
███▄░░▀░▀░▄████
███░▀▄░▄▄██████

███████████████

███████████████

███████████████

███████████████

DEPOSIT BONUS
.1000%.
GET FREE
...5 BTC...

REFER & EARN
..$1000 + 15%..
COMMISSION


 Play Now 
philipma1957
Legendary
*
Offline Offline

Activity: 4466
Merit: 9707


'The right to privacy matters'


View Profile WWW
April 13, 2025, 01:01:49 PM
 #6

yeah pc's good enough to do a full node are cheap

as are laptops.

So many used ones on eBay .

https://www.ebay.com/itm/234989817127?


this is 200 buy a decent ssd

https://www.amazon.com/SAMSUNG-Technology-Intelligent-Turbowrite-MZ-V9S2T0B/dp/B0DHLCRF91/ref=sr_1_5?


cost 339 for the 2 and you are set for at least 3 to 5 years.


that was a fast search you can likely find a good setup for under 339

here is a decent laptop for 359 this is plug n play

https://www.ebay.com/itm/396388013020?



these are fast eBay searches if you take your time you can find a better deal

██████▄██▄███████████▄█▄
█████▄█████▄████▄▄▄█
███████████████████
████▐███████████████████
███████████▀▀▄▄▄▄███████
██▄███████▄▀███▀█▀▀█▄▄▄█
▀██████████▄█████▄▄█████▀██
██████████▄████▀██▄▀▀▀█████▄
█████████████▐█▄▀▄███▀██▄
███████▄▄▄███▌▌█▄▀▀███████▄
▀▀▀███████████▌██▀▀▀▀▀█▄▄▄████▀
███████▀▀██████▄▄██▄▄▄▄███▀▀
████████████▀▀▀██████████
 BETFURY ....█████████████
███████████████
███████████████
██▀▀▀▀█▀▀▄░▄███
█▄░░░░░██▌▐████
█████▌▐██▌▐████
███▀▀░▀█▀░░▀███
██░▄▀░█░▄▀░░░██
██░░░░█░░░░░░██
███▄░░▄█▄░░▄███
███████████████
███████████████
░░█████████████
█████████████
███████████████
███████████████
███▀▀░░█░░▀▀███
██░░▄█▀▀▀█▄░░██
█░░█▀░▐█▌░▀█░░█
█▀▀█░██░██░█▄▄█
█░░█▄░▐█▌░▄█░░█
██░░▀█▄▄▄█▀░░██
███▄▄░░█░░▄▄███
███████████████
███████████████
░░█████████████
█████████████
███████████████
███████████████
██▀▄▄▄▄▄▄▄▄████
██░█▀░░░░░░░▀██
██░█░▀░▄░▄░░░██
██░█░░█████░░██
██░█░░▀███▀░░██
██░█░░░░▀░░▄░██
████▄░░░░░░░▄██
███████████████
███████████████
░░█████████████
Report To Admin
 BETFU
LoyceV
Legendary
*
Offline Offline

Activity: 3654
Merit: 18650


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 13, 2025, 01:26:19 PM
 #7

Having the full blockchain gives me the flexibility to rescan the blockchain if I ever need to recover a wallet, which isn’t possible with a pruned setup.
The last time I did a rescan on my old laptop with block on HDD, it took a very long time. Given enough RAM, bandwidth and CPU power, even a pruned node can do a rescan in just half a day. But I admit: if you have that kind of hardware, you probably have enough space to store a full blockchain too.

Not Banned from displaying signatures until April 1, 2099, 13:37:00 PM
Mia Chloe
Hero Member
*****
Offline Offline

Activity: 686
Merit: 1094


Contact me for your designs...


View Profile
April 13, 2025, 01:33:11 PM
 #8

The last time I did a rescan on my old laptop with block on HDD, it took a very long time. Given enough RAM, bandwidth and CPU power, even a pruned node can do a rescan in just half a day. But I admit: if you have that kind of hardware, you probably have enough space to store a full blockchain too.
To be honest PC specs that we use to regard as huge or high level specs back in the day are now regular specs because of the demand for better GPU CPU and even RAM on laptops and other PCs. Nevertheless on e thing I've noticed is that a storage has a role to play in speed though especially if you make use of SSD.

That's the reason most people prefer to go for a prunned node since you have more storage to spare hence the risks of lagging and glitches are way low.

░░░▄████████████████████████
░▄████████████████████████████
████████████████████████████
████████████████████████████
█████████████████████████████
█████████████████████████████
██████████████████████████████
████████████████████████████▀
█████████████████████████▀
████████████████████
█████████████████████
██████████████████████
░░███████████████████▀
█████████████████████████
█████████████████████████
█████░▄▄█████████████████
█████░███████████████████
█████░███████░███████████
████████████░████████████
██████████░█████████████
██████████░██████████████
██████████░██████████████
██████████░██████████████
████████░████████████████
█████████████████████████
█████████████████████████
 100% 
WELCOME BONUS
 UP TO 15% 
CASHBACK
 NO KYC 
PROVABLY FAIR
█████████████████████████
█████████████████████████
█████████████████████████
█████░██░░██░██░░██░█████
████░████████████████████
█████████░░███░░█████████
█████░░██████████████████
███████░░████████████████
█████████░█████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
 
  Play Now  
callmejoe (OP)
Jr. Member
*
Offline Offline

Activity: 52
Merit: 22


View Profile WWW
April 13, 2025, 02:26:40 PM
 #9

i have a full node running on my rapberry pi with a 1TB m.2 ssd. when i bought the ssd 3 years ago i think the chain was 450GB(?) about. now the storage is up to 700GB. I'll have to set my sights on a 2TB soon Shocked

I have this pruned node on my desktop which I daily drive so I can experiment with different settings and not have to constantly reboot the server on the raspberry pi.

I took the 1TB storage from the raspberry pi and mounted it to my pc to copy the blocks and chainstate files.  still took a few hours but better than waiting for a full IBD.

I cant imagine having to do a full IBD in a few years time when the blockchain is over 1TB.

maybe they'll be a need to start sharing pruned blockchains with people who cant or dont want to go through an IBD.
LoyceV
Legendary
*
Offline Offline

Activity: 3654
Merit: 18650


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 13, 2025, 05:33:38 PM
 #10

I cant imagine having to do a full IBD in a few years time when the blockchain is over 1TB.
That's not going to be a problem. Computing power is still growing at exponential rate, while Bitcoin's blockchain is only growing linear.

Quote
maybe they'll be a need to start sharing pruned blockchains with people who cant or dont want to go through an IBD.
See Bitcoin Core pruned blockchain: download it here! (DON'T DO THIS!) Smiley

Not Banned from displaying signatures until April 1, 2099, 13:37:00 PM
callmejoe (OP)
Jr. Member
*
Offline Offline

Activity: 52
Merit: 22


View Profile WWW
April 13, 2025, 08:10:31 PM
 #11

I cant imagine having to do a full IBD in a few years time when the blockchain is over 1TB.
That's not going to be a problem. Computing power is still growing at exponential rate, while Bitcoin's blockchain is only growing linear.

Quote
maybe they'll be a need to start sharing pruned blockchains with people who cant or dont want to go through an IBD.
See Bitcoin Core pruned blockchain: download it here! (DON'T DO THIS!) Smiley

so what's the approximate time now for an IDB to complete these days?

and i think it will be a problem as the blockchain grows.  if you always have to download the entire chain first before pruning, it's going to be prohibitive for more and more people to run a node.

 
philipma1957
Legendary
*
Offline Offline

Activity: 4466
Merit: 9707


'The right to privacy matters'


View Profile WWW
April 14, 2025, 12:36:04 AM
 #12

I cant imagine having to do a full IBD in a few years time when the blockchain is over 1TB.
That's not going to be a problem. Computing power is still growing at exponential rate, while Bitcoin's blockchain is only growing linear.

Quote
maybe they'll be a need to start sharing pruned blockchains with people who cant or dont want to go through an IBD.
See Bitcoin Core pruned blockchain: download it here! (DON'T DO THIS!) Smiley

so what's the approximate time now for an IDB to complete these days?

and i think it will be a problem as the blockchain grows.  if you always have to download the entire chain first before pruning, it's going to be prohibitive for more and more people to run a node.

 

If you have fast internet six hours or less..

1gb eth speed
2tb ssd
16gb ram
A decent cpu

Now I showed links for $350 PCS THAT WILL DO FAST DOWNLOADS IF YOU  HAVE 1GB INTERNET.



The issue will not be bad if the net move to 10gb speed in 5 years.

Some places have 10gb.

My newest pc will be a 10gb internet 2tb ssd 36gb ram pc i will do a download in 4 hours. As i  have 1gb Internet.

██████▄██▄███████████▄█▄
█████▄█████▄████▄▄▄█
███████████████████
████▐███████████████████
███████████▀▀▄▄▄▄███████
██▄███████▄▀███▀█▀▀█▄▄▄█
▀██████████▄█████▄▄█████▀██
██████████▄████▀██▄▀▀▀█████▄
█████████████▐█▄▀▄███▀██▄
███████▄▄▄███▌▌█▄▀▀███████▄
▀▀▀███████████▌██▀▀▀▀▀█▄▄▄████▀
███████▀▀██████▄▄██▄▄▄▄███▀▀
████████████▀▀▀██████████
 BETFURY ....█████████████
███████████████
███████████████
██▀▀▀▀█▀▀▄░▄███
█▄░░░░░██▌▐████
█████▌▐██▌▐████
███▀▀░▀█▀░░▀███
██░▄▀░█░▄▀░░░██
██░░░░█░░░░░░██
███▄░░▄█▄░░▄███
███████████████
███████████████
░░█████████████
█████████████
███████████████
███████████████
███▀▀░░█░░▀▀███
██░░▄█▀▀▀█▄░░██
█░░█▀░▐█▌░▀█░░█
█▀▀█░██░██░█▄▄█
█░░█▄░▐█▌░▄█░░█
██░░▀█▄▄▄█▀░░██
███▄▄░░█░░▄▄███
███████████████
███████████████
░░█████████████
█████████████
███████████████
███████████████
██▀▄▄▄▄▄▄▄▄████
██░█▀░░░░░░░▀██
██░█░▀░▄░▄░░░██
██░█░░█████░░██
██░█░░▀███▀░░██
██░█░░░░▀░░▄░██
████▄░░░░░░░▄██
███████████████
███████████████
░░█████████████
Report To Admin
 BETFU
callmejoe (OP)
Jr. Member
*
Offline Offline

Activity: 52
Merit: 22


View Profile WWW
April 14, 2025, 12:42:18 AM
 #13

looks like i'll have to upgrade to 1gb at least.  i just have 300mb right now
LoyceV
Legendary
*
Offline Offline

Activity: 3654
Merit: 18650


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 14, 2025, 05:03:35 AM
 #14

so what's the approximate time now for an IDB to complete these days?
Depending on system specs, it's anywhere from hours to weeks.

looks like i'll have to upgrade to 1gb at least.  i just have 300mb right now
That doesn't make any sense. It's 2 days since you opened this topic, a 300 Mbit/s connection could have downloaded the full Bitcoin blockchain 6 times already.

Not Banned from displaying signatures until April 1, 2099, 13:37:00 PM
nc50lc
Legendary
*
Online Online

Activity: 2758
Merit: 7125


Self-proclaimed Genius


View Profile
April 14, 2025, 05:53:41 AM
 #15

so what's the approximate time now for an IDB to complete these days?
and i think it will be a problem as the blockchain grows.  if you always have to download the entire chain first before pruning, it's going to be prohibitive for more and more people to run a node.
Now that you've mentioned it, there'll be an "assumeutxo" feature that will enable you to use your node and wallet in just a few minutes or hours even if the background sync isn't finished yet.

You can read this for more information: https://github.com/jamesob/assumeutxo-docs/tree/2019-04-proposal/proposal
Here's a link to follow its implementation to the reference client: https://github.com/orgs/bitcoin/projects/7

ABCbits
Legendary
*
Offline Offline

Activity: 3220
Merit: 8706



View Profile
April 14, 2025, 08:59:10 AM
 #16

I cant imagine having to do a full IBD in a few years time when the blockchain is over 1TB.

Some people would find it challenging. But FWIW,
1. Time and cost to perform IBD on Bitcoin full node is much lighter than majority of altcoins.
2. Computer hardware and internet are expected continue to grow more faster.

maybe they'll be a need to start sharing pruned blockchains with people who cant or dont want to go through an IBD.

In this case, those people probably better using SPV/lightweight wallet.

so what's the approximate time now for an IDB to complete these days?
Depending on system specs, it's anywhere from hours to weeks.

FWIW, one of Jameson Lopp blog mentioned it took 452 minutes to perform IDB with his fast PC and 28GB dbcache. See https://blog.lopp.net/effects-dbcache-size-bitcoin-node-sync-speed/.

philipma1957
Legendary
*
Offline Offline

Activity: 4466
Merit: 9707


'The right to privacy matters'


View Profile WWW
April 14, 2025, 05:04:10 PM
 #17

I cant imagine having to do a full IBD in a few years time when the blockchain is over 1TB.

Some people would find it challenging. But FWIW,
1. Time and cost to perform IBD on Bitcoin full node is much lighter than majority of altcoins.
2. Computer hardware and internet are expected continue to grow more faster.

maybe they'll be a need to start sharing pruned blockchains with people who cant or dont want to go through an IBD.

In this case, those people probably better using SPV/lightweight wallet.

so what's the approximate time now for an IDB to complete these days?
Depending on system specs, it's anywhere from hours to weeks.

FWIW, one of Jameson Lopp blog mentioned it took 452 minutes to perform IDB with his fast PC and 28GB dbcache. See https://blog.lopp.net/effects-dbcache-size-bitcoin-node-sync-speed/.

It is a nice article. I have found that 4-6 hours is possible with a quality machine. My latest download was


an M4 Mac mini with 16gb ram and a 2tb ssd.  done on 1gb speed internet on feb 7 2025.

It took 6 hours or about 420 minutes. using the 450mh cache.  I think the reason why I could be so fast with the stock cache was the ram in the 2025 m4 mini and the cpu is very likely faster than his 6 year old machine.

My Mac Studio is coming on the 16th of April

it has a m4 max cpu
it has 36gb ram
it has a 2tb nvme.2 ssd
it has 10gb internet but I only have 1 gb internet.

I will do a 28.1 core download with it and set an 18gb cache . I think I can do a 4 hour download.

in theory I could do this in under 2 hours. but I do not think it will

see calculator below


██████▄██▄███████████▄█▄
█████▄█████▄████▄▄▄█
███████████████████
████▐███████████████████
███████████▀▀▄▄▄▄███████
██▄███████▄▀███▀█▀▀█▄▄▄█
▀██████████▄█████▄▄█████▀██
██████████▄████▀██▄▀▀▀█████▄
█████████████▐█▄▀▄███▀██▄
███████▄▄▄███▌▌█▄▀▀███████▄
▀▀▀███████████▌██▀▀▀▀▀█▄▄▄████▀
███████▀▀██████▄▄██▄▄▄▄███▀▀
████████████▀▀▀██████████
 BETFURY ....█████████████
███████████████
███████████████
██▀▀▀▀█▀▀▄░▄███
█▄░░░░░██▌▐████
█████▌▐██▌▐████
███▀▀░▀█▀░░▀███
██░▄▀░█░▄▀░░░██
██░░░░█░░░░░░██
███▄░░▄█▄░░▄███
███████████████
███████████████
░░█████████████
█████████████
███████████████
███████████████
███▀▀░░█░░▀▀███
██░░▄█▀▀▀█▄░░██
█░░█▀░▐█▌░▀█░░█
█▀▀█░██░██░█▄▄█
█░░█▄░▐█▌░▄█░░█
██░░▀█▄▄▄█▀░░██
███▄▄░░█░░▄▄███
███████████████
███████████████
░░█████████████
█████████████
███████████████
███████████████
██▀▄▄▄▄▄▄▄▄████
██░█▀░░░░░░░▀██
██░█░▀░▄░▄░░░██
██░█░░█████░░██
██░█░░▀███▀░░██
██░█░░░░▀░░▄░██
████▄░░░░░░░▄██
███████████████
███████████████
░░█████████████
Report To Admin
 BETFU
LoyceV
Legendary
*
Offline Offline

Activity: 3654
Merit: 18650


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 14, 2025, 05:30:13 PM
 #18

I have found that 4-6 hours is possible with a quality machine.
I'd like to test this on a high power server, but the only ones I can rent by the hour (with my existing crypto-accepting hosting accounts) aren't really high-end.

Not Banned from displaying signatures until April 1, 2099, 13:37:00 PM
philipma1957
Legendary
*
Offline Offline

Activity: 4466
Merit: 9707


'The right to privacy matters'


View Profile WWW
April 14, 2025, 05:57:38 PM
Last edit: April 14, 2025, 06:12:18 PM by philipma1957
 #19

I have found that 4-6 hours is possible with a quality machine.
I'd like to test this on a high power server, but the only ones I can rent by the hour (with my existing crypto-accepting hosting accounts) aren't really high-end.

The mac studio should do a really fast job. I will post results on Friday.

I HAD A thread ripper with 128gb it was really fast.

That was in 2021. But my internet was slower only 200mb.


I would love to get a 10gb internet line but I am in suburbs outside new york city I don't know of any internet service faster than 2gb within 20miles of me.



I could upgrade to 2gb for 20 more a month.

And a 200 dollar rebate which actually makes sense once I get the mac studio. Since it has a 10gb connection

██████▄██▄███████████▄█▄
█████▄█████▄████▄▄▄█
███████████████████
████▐███████████████████
███████████▀▀▄▄▄▄███████
██▄███████▄▀███▀█▀▀█▄▄▄█
▀██████████▄█████▄▄█████▀██
██████████▄████▀██▄▀▀▀█████▄
█████████████▐█▄▀▄███▀██▄
███████▄▄▄███▌▌█▄▀▀███████▄
▀▀▀███████████▌██▀▀▀▀▀█▄▄▄████▀
███████▀▀██████▄▄██▄▄▄▄███▀▀
████████████▀▀▀██████████
 BETFURY ....█████████████
███████████████
███████████████
██▀▀▀▀█▀▀▄░▄███
█▄░░░░░██▌▐████
█████▌▐██▌▐████
███▀▀░▀█▀░░▀███
██░▄▀░█░▄▀░░░██
██░░░░█░░░░░░██
███▄░░▄█▄░░▄███
███████████████
███████████████
░░█████████████
█████████████
███████████████
███████████████
███▀▀░░█░░▀▀███
██░░▄█▀▀▀█▄░░██
█░░█▀░▐█▌░▀█░░█
█▀▀█░██░██░█▄▄█
█░░█▄░▐█▌░▄█░░█
██░░▀█▄▄▄█▀░░██
███▄▄░░█░░▄▄███
███████████████
███████████████
░░█████████████
█████████████
███████████████
███████████████
██▀▄▄▄▄▄▄▄▄████
██░█▀░░░░░░░▀██
██░█░▀░▄░▄░░░██
██░█░░█████░░██
██░█░░▀███▀░░██
██░█░░░░▀░░▄░██
████▄░░░░░░░▄██
███████████████
███████████████
░░█████████████
Report To Admin
 BETFU
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!