Bitcoin Forum
May 03, 2024, 01:27:24 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain redownload after crash  (Read 819 times)
chalkboard17 (OP)
Sr. Member
****
Offline Offline

Activity: 484
Merit: 250



View Profile
June 08, 2015, 08:22:41 PM
 #1

Everytime my computer crashes/reboots while Bitcoin is still running, I have to redownload the entire blockchain again. I believe this demotivates people to run nodes. I suggest this to be fixed so people can run more nodes since it takes a long time to download and process entire blockchain. Perhaps doing backups from time to time, automatically, would be a good idea.

                ▄▄  ▄▄                
            ██  ▀▀  ▀▀   ██           
        ██                   ██
       
                ██  ██  ▄▄            
     ██    ██           ▀▀  ▄▄        
                  ███       ▀▀        
   ██    ██   ███      ███     ██     
                          ███         
  ██   ██   ██    ███ ███    ▄▄   ██  
               ███           ▀▀       
  ██   ██  ███           ███  ██   ██ 
                     ███              
    ▄▄  ██    ███ ███     ▄▄  ██   ██ 
    ▀▀    ▄▄              ▀▀          
      ▄▄  ▀▀          ███    ██   ██  
      ▀▀      ██  ███                 
         ██              ███    ███   
             ██  ██  ███              
       ██                    ██       
           ███  ▄▄▄  ▄▄  ███          
                ▀▀▀  ▀▀               
 
STREAMITY
 

 

  Twitter
Facebook
Instagram
  Telegram
LinkedIn
Medium
1714699644
Hero Member
*
Offline Offline

Posts: 1714699644

View Profile Personal Message (Offline)

Ignore
1714699644
Reply with quote  #2

1714699644
Report to moderator
1714699644
Hero Member
*
Offline Offline

Posts: 1714699644

View Profile Personal Message (Offline)

Ignore
1714699644
Reply with quote  #2

1714699644
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714699644
Hero Member
*
Offline Offline

Posts: 1714699644

View Profile Personal Message (Offline)

Ignore
1714699644
Reply with quote  #2

1714699644
Report to moderator
lemipawa
Legendary
*
Offline Offline

Activity: 1708
Merit: 1003


View Profile
June 08, 2015, 08:38:28 PM
 #2

This actually happens to me also. You aren't redownloading the blockchain, you are reindexing the database. Since the LevelDB database is open when the node is running, if the computer crashes, the database is still open, and thus becomes corrupted. Once the database is corrupted, the node must rebuild it.

If your computer is constantly crashing, you should get that checked out. It usually means a hardware issue.
2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1065



View Profile
June 08, 2015, 08:46:46 PM
 #3

It is probably not a whole re-download but just a re-build of the "chainstate" subdirectory. Keep a local backup of that directory that is periodically updated (I use 7-zip 'synchronize' option) and you should be fine.

On a parallel note: keep track of the people who say that "LevelDB" is a fuly ACID database engine and people who claim that Litecoin isn't meaningfully improving over the Bitcoin code. W.r.t. this bug this is a way to recognize liars and bullshit artists.

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
chalkboard17 (OP)
Sr. Member
****
Offline Offline

Activity: 484
Merit: 250



View Profile
June 08, 2015, 10:17:59 PM
 #4

I am running Windows 10, since it's beta I get some crashes eventually (I'd say once every two days).
Thank you for the suggestion, coincidentally I thought of doing that after my last reboot. Hope it works out good.

I created this thread to make people aware of this problem, not for me, but for people who want to run nodes and might find this annoying. Nodes are always welcomed. This resync takes nearly 12 hours on my fast computer.

                ▄▄  ▄▄                
            ██  ▀▀  ▀▀   ██           
        ██                   ██
       
                ██  ██  ▄▄            
     ██    ██           ▀▀  ▄▄        
                  ███       ▀▀        
   ██    ██   ███      ███     ██     
                          ███         
  ██   ██   ██    ███ ███    ▄▄   ██  
               ███           ▀▀       
  ██   ██  ███           ███  ██   ██ 
                     ███              
    ▄▄  ██    ███ ███     ▄▄  ██   ██ 
    ▀▀    ▄▄              ▀▀          
      ▄▄  ▀▀          ███    ██   ██  
      ▀▀      ██  ███                 
         ██              ███    ███   
             ██  ██  ███              
       ██                    ██       
           ███  ▄▄▄  ▄▄  ███          
                ▀▀▀  ▀▀               
 
STREAMITY
 

 

  Twitter
Facebook
Instagram
  Telegram
LinkedIn
Medium
unamis76
Legendary
*
Offline Offline

Activity: 1512
Merit: 1005


View Profile
June 09, 2015, 12:11:26 AM
 #5

I am running Windows 10, since it's beta I get some crashes eventually (I'd say once every two days).
Thank you for the suggestion, coincidentally I thought of doing that after my last reboot. Hope it works out good.

I created this thread to make people aware of this problem, not for me, but for people who want to run nodes and might find this annoying. Nodes are always welcomed. This resync takes nearly 12 hours on my fast computer.

Crashes are rare on stable and fine tuned systems... Probably a good idea to switch OS if you want to run a node without any problems Smiley
2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1065



View Profile
June 09, 2015, 01:00:00 AM
 #6

I am running Windows 10, since it's beta I get some crashes eventually (I'd say once every two days).
Thank you for the suggestion, coincidentally I thought of doing that after my last reboot. Hope it works out good.
You have some sort of problem with your hardware or configuration. While I don't run Win X, my friends are running the MSDN copy and it is running the cryptocoin daemons without any problems for much longer than what you see.

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
chalkboard17 (OP)
Sr. Member
****
Offline Offline

Activity: 484
Merit: 250



View Profile
June 09, 2015, 01:05:26 AM
 #7

I am not worried about myself. I just thought this would be yet another reason for people not to run full nodes in general.

                ▄▄  ▄▄                
            ██  ▀▀  ▀▀   ██           
        ██                   ██
       
                ██  ██  ▄▄            
     ██    ██           ▀▀  ▄▄        
                  ███       ▀▀        
   ██    ██   ███      ███     ██     
                          ███         
  ██   ██   ██    ███ ███    ▄▄   ██  
               ███           ▀▀       
  ██   ██  ███           ███  ██   ██ 
                     ███              
    ▄▄  ██    ███ ███     ▄▄  ██   ██ 
    ▀▀    ▄▄              ▀▀          
      ▄▄  ▀▀          ███    ██   ██  
      ▀▀      ██  ███                 
         ██              ███    ███   
             ██  ██  ███              
       ██                    ██       
           ███  ▄▄▄  ▄▄  ███          
                ▀▀▀  ▀▀               
 
STREAMITY
 

 

  Twitter
Facebook
Instagram
  Telegram
LinkedIn
Medium
dogie
Legendary
*
Offline Offline

Activity: 1666
Merit: 1183


dogiecoin.com


View Profile WWW
June 09, 2015, 01:12:16 AM
 #8

I am running Windows 10, since it's beta I get some crashes eventually (I'd say once every two days).
Thank you for the suggestion, coincidentally I thought of doing that after my last reboot. Hope it works out good.

I created this thread to make people aware of this problem, not for me, but for people who want to run nodes and might find this annoying. Nodes are always welcomed. This resync takes nearly 12 hours on my fast computer.

Crashes are rare on stable and fine tuned systems... Probably a good idea to switch OS if you want to run a node without any problems Smiley

I don't think I've ever unexpectedly restarted or turned off in the last 2 years of this Windows 8 build. I've black screened many a time, but it seems to still be able to shut itself down. Saying that, I too have also had to reindex a few times recently without unusual shutdowns or crashes. Is it possible there was a bug introduced?

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!