Bitcoin Forum
May 28, 2024, 11:53:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Checksum of file blk00256.dat  (Read 854 times)
howareyoutoday (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 09, 2015, 08:20:21 AM
 #1

Hi! I have experienced a some problem with one of block files.
Please, can you check if your output of
Code:
sha256sum blk00256.dat
is matches with
Code:
5a70d49f9aca1d11e792aa7cfe5db33ea90b6744e8aa01a06216b82670443a3c
If no, please, can you upload this file at any file hosting? MEGA, for example.
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
August 09, 2015, 08:39:56 AM
 #2

Please, can you check if your output of
Code:
sha256sum blk00256.dat
is matches with
Code:
5a70d49f9aca1d11e792aa7cfe5db33ea90b6744e8aa01a06216b82670443a3c

Your copy might have orphan blocks that my copy wouldn't, therefore checking integrity with a hash isn't reliable. Mine doesn't match but that means nothing to you.
howareyoutoday (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 09, 2015, 08:50:26 AM
 #3

Quote from: dserrano5
Your copy might have orphan blocks that my copy wouldn't, therefore checking integrity with a hash isn't reliable. Mine doesn't match but that means nothing to you.
Thank you! I did not know about that. So, I have a new question. If I will replace this file using file provided by someone else then is my database will not be corrupted? I know that this files has contains raw blocks, but I did not know are this files can contain a different amount of blocks at different computers or not. UPD.: as I understand, yes. And it looks like replacing this file with file provided by anyone else will not help me, and there is only way is rebuild database?
vm1990
Legendary
*
Offline Offline

Activity: 1540
Merit: 1002



View Profile
August 09, 2015, 09:09:37 AM
 #4

in theory if you delete the block the bitcoin wallet should see something strange (trys not to sings ghostbusters) and reindex and download any missing info.... in theory

howareyoutoday (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 09, 2015, 09:23:46 AM
 #5

Quote from: vm1990
in theory if you delete the block the bitcoin wallet should see something strange (trys not to sings ghostbusters) and reindex and download any missing info.... in theory
This thing has been a first thought. I had made a copy of bitcoin data directory and then deleted a blk00256.dat file. After that I executed bitcoin-qt and it offered to rebuild a database. When I accepted this then bitcoin client has started a database rebuild process from first block. When I first post this message I think about that it is possible to fix this problem without a rebuilding full database (because this one takes a long time).
^.^
Member
**
Offline Offline

Activity: 81
Merit: 10


View Profile
August 09, 2015, 09:29:03 AM
 #6

i get
Code:
11A37515AF2DA035570114E942F891D3C4E3D400987E37510336B61EF240DEF3

here if you want it
http://cloud.bloginhell.me/index.php/s/Xdlw2jPEUz50H0I
vm1990
Legendary
*
Offline Offline

Activity: 1540
Merit: 1002



View Profile
August 09, 2015, 09:31:10 AM
 #7

rebuilding isnt the same as redownloading most computers reindex in about an hour. its just checking everything and replacing a blk will probably need a rebuild anyhow

dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
August 09, 2015, 09:56:09 AM
 #8

I have a new question. If I will replace this file using file provided by someone else then is my database will not be corrupted?

It will be corrupted because the indexes no longer point to where they are supposed to.


And it looks like replacing this file with file provided by anyone else will not help me, and there is only way is rebuild database?

Correct, you have to re-download everything from that point on.
howareyoutoday (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 09, 2015, 10:03:31 AM
 #9

Quote from: ^.^
i get
Code:
11A37515AF2DA035570114E942F891D3C4E3D400987E37510336B61EF240DEF3

here if you want it
http://cloud.bloginhell.me/index.php/s/Xdlw2jPEUz50H0I

Thank you very much! I am waiting now while process of copying old files was finished. But I has found that hashes of first 50 transactions from your file is different from hashes of my file. So I think that replacing one file by other is not possible. But I will write soon about that will be happened after copying and replacing my file with your.

Quote from: vm1990
rebuilding isnt the same as redownloading most computers reindex in about an hour. its just checking everything and replacing a blk will probably need a rebuild anyhow
Thank you!

Quote from: dserrano5
Quote from: howareyoutoday
I have a new question. If I will replace this file using file provided by someone else then is my database will not be corrupted?

It will be corrupted because the indexes no longer point to where they are supposed to.


Quote from: howareyoutoday
And it looks like replacing this file with file provided by anyone else will not help me, and there is only way is rebuild database?

Correct, you have to re-download everything from that point on.

Thank you!

For users with HDD is a bit sadly, that there is no place from where you can download database files by choosing them partly. So, this question seems solved now.
howareyoutoday (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 09, 2015, 10:12:42 AM
 #10

This is a bit strange, but after replacing my file with file provided by ^.^ and run bitcoin with command
Code:
bitcoin-qt -datadir=bitcoin-data -txindex=1 -rescan
client still works, it sucessfully downloaded blocks created from 2 hours ago and show no errors... Cheesy
I'm not sure what is going on, but I think that rebuilding an old database (with blk00256.dat removed) is the best choice. Cheers!
hexafraction
Sr. Member
****
Offline Offline

Activity: 392
Merit: 259

Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ


View Profile
August 09, 2015, 01:45:09 PM
 #11

These files are not blocks directly, but parts of a database with its own layer of indexing and management. You cannot use them as drop ins. Additionally, the database layer and bitcoind will not have enough integration to intelligently redownload some blocks.

I have recently become active again after a long period of inactivity. Cryptographic proof that my account has not been compromised is available.
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!