Author

Topic: Do blocks ever get removed from disk? (Read 933 times)

hero member
Activity: 644
Merit: 500
My goal is becaming a billionaire.
January 26, 2015, 11:43:58 AM
#7
It seems that blocks are written to disk in the WriteBlockToDisk function in main.cpp. But I haven't found where they are deleted. Maybe they don't ever get deleted from disk? Once written they are always valid?


Never , they never gets deleted mate unless you do it your self . and If you delete your self then Bitcoin Core will download them once again and check them while start up
Path : %appdata%\Bitcoin\blocks , try to delete one of them and you will see your wallet Re-downloading it once again
I don't see why I would do that. It will re-download the same blocks.

LOL ? Well this is what I just said and I'am trying to explain to OP what will happen if you delete them .
member
Activity: 113
Merit: 10
January 26, 2015, 11:41:09 AM
#6
It seems that blocks are written to disk in the WriteBlockToDisk function in main.cpp. But I haven't found where they are deleted. Maybe they don't ever get deleted from disk? Once written they are always valid?


Never , they never gets deleted mate unless you do it your self . and If you delete your self then Bitcoin Core will download them once again and check them while start up
Path : %appdata%\Bitcoin\blocks , try to delete one of them and you will see your wallet Re-downloading it once again
I don't see why I would do that. It will re-download the same blocks.
hero member
Activity: 644
Merit: 500
My goal is becaming a billionaire.
January 26, 2015, 07:54:16 AM
#5
It seems that blocks are written to disk in the WriteBlockToDisk function in main.cpp. But I haven't found where they are deleted. Maybe they don't ever get deleted from disk? Once written they are always valid?


Never , they never gets deleted mate unless you do it your self . and If you delete your self then Bitcoin Core will download them once again and check them while start up
Path : %appdata%\Bitcoin\blocks , try to delete one of them and you will see your wallet Re-downloading it once again
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
January 26, 2015, 07:38:43 AM
#4
It seems that blocks are written to disk in the WriteBlockToDisk function in main.cpp. But I haven't found where they are deleted. Maybe they don't ever get deleted from disk? Once written they are always valid?

They will never ever delete themself and you should never delete them, deleting any part of the blockchain would invalidate it and will require you to download them again. Unless they get corrupted, they will be valid. The Bitcoin core verify every single of the block during start up and they will inform you if it gets corrupted.
newbie
Activity: 10
Merit: 0
January 25, 2015, 05:35:07 PM
#3
Thanks!
member
Activity: 80
Merit: 10
January 25, 2015, 05:25:45 PM
#2
It seems that blocks are written to disk in the WriteBlockToDisk function in main.cpp. But I haven't found where they are deleted. Maybe they don't ever get deleted from disk? Once written they are always valid?


Correct
newbie
Activity: 10
Merit: 0
January 25, 2015, 05:06:34 PM
#1
It seems that blocks are written to disk in the WriteBlockToDisk function in main.cpp. But I haven't found where they are deleted. Maybe they don't ever get deleted from disk? Once written they are always valid?
Jump to: