Title: Checksum of file blk00256.dat Post by: howareyoutoday on August 09, 2015, 08:20:21 AM Hi! I have experienced a some problem with one of block files.
Please, can you check if your output of Code: sha256sum blk00256.dat Code: 5a70d49f9aca1d11e792aa7cfe5db33ea90b6744e8aa01a06216b82670443a3c Title: Re: Checksum of file blk00256.dat Post by: dserrano5 on August 09, 2015, 08:39:56 AM Please, can you check if your output of Code: sha256sum blk00256.dat 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. Title: Re: Checksum of file blk00256.dat Post by: howareyoutoday on August 09, 2015, 08:50:26 AM 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?Title: Re: Checksum of file blk00256.dat Post by: vm1990 on August 09, 2015, 09:09:37 AM 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
Title: Re: Checksum of file blk00256.dat Post by: howareyoutoday on August 09, 2015, 09:23:46 AM 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).Title: Re: Checksum of file blk00256.dat Post by: ^.^ on August 09, 2015, 09:29:03 AM i get
Code: 11A37515AF2DA035570114E942F891D3C4E3D400987E37510336B61EF240DEF3 here if you want it http://cloud.bloginhell.me/index.php/s/Xdlw2jPEUz50H0I (http://cloud.bloginhell.me/index.php/s/Xdlw2jPEUz50H0I) Title: Re: Checksum of file blk00256.dat Post by: vm1990 on August 09, 2015, 09:31:10 AM 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
Title: Re: Checksum of file blk00256.dat Post by: dserrano5 on August 09, 2015, 09:56:09 AM 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. Title: Re: Checksum of file blk00256.dat Post by: howareyoutoday on August 09, 2015, 10:03:31 AM Quote from: ^.^ i get Code: 11A37515AF2DA035570114E942F891D3C4E3D400987E37510336B61EF240DEF3 here if you want it http://cloud.bloginhell.me/index.php/s/Xdlw2jPEUz50H0I (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 (https://gist.github.com/anonymous/22657d9cf76aefbd557a) 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. Title: Re: Checksum of file blk00256.dat Post by: howareyoutoday on August 09, 2015, 10:12:42 AM 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 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! Title: Re: Checksum of file blk00256.dat Post by: hexafraction on August 09, 2015, 01:45:09 PM 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.
|