Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Antena on February 29, 2016, 03:05:39 PM



Title: Reindexing blocks (5 years...)
Post by: Antena on February 29, 2016, 03:05:39 PM
Hi,

After update my Bictoin Core to 0.12.0 whe restarted, got the message which the blocks are corrupted and must be reindexed, but the wait time is upper than 5 years here.
Anyone now hoe to solve it?


Title: Re: Reindexing blocks (5 years...)
Post by: Lutpin on February 29, 2016, 03:07:43 PM
After update my Bictoin Core to 0.12.0 whe restarted, got the message which the blocks are corrupted and must be reindexed, but the wait time is upper than 5 years here.
Anyone now hoe to solve it?
It means your client is more than 5 years behind with the blocks it is reindexing, that's no estimate on how long you have to wait, but on how far down the chain the process is.
It will go down from those >5 years slowly up until it catches up with the current blocks.


Title: Re: Reindexing blocks (5 years...)
Post by: achow101 on February 29, 2016, 03:09:14 PM
No, you do not have to wait 5 years. That just means the latest block that it had indexed is from 5 years ago. The reindexing should only take a few hours to a day or so.


Title: Re: Reindexing blocks (5 years...)
Post by: Antena on February 29, 2016, 03:19:26 PM
After update my Bictoin Core to 0.12.0 whe restarted, got the message which the blocks are corrupted and must be reindexed, but the wait time is upper than 5 years here.
Anyone now hoe to solve it?
It means your client is more than 5 years behind with the blocks it is reindexing, that's no estimate on how long you have to wait, but on how far down the chain the process is.
It will go down from those >5 years slowly up until it catches up with the current blocks.

Thank you. I will wait. Now rest 4 years and 21 weeks.


Title: Re: Reindexing blocks (5 years...)
Post by: teddy5145 on February 29, 2016, 04:19:50 PM
How much Internet speed you have ? because downloading the whole block can take a few gigs
If you don't really want to download the whole block that can take gigs, you can use wallet like electrum where you don't need any block indexing and ready to go ;)
Though, you will need to import your old private key from Bitcoin core to Electrum, shouldn't be a problem for you right ?


Title: Re: Reindexing blocks (5 years...)
Post by: achow101 on February 29, 2016, 04:30:27 PM
How much Internet speed you have ? because downloading the whole block can take a few gigs
If you don't really want to download the whole block that can take gigs, you can use wallet like electrum where you don't need any block indexing and ready to go ;)
Though, you will need to import your old private key from Bitcoin core to Electrum, shouldn't be a problem for you right ?

Since he is reindexing, internet speed doesn't matter, hard drive and CPU do. The blockchain is not being redownloaded here.


Title: Re: Reindexing blocks (5 years...)
Post by: cluit on February 29, 2016, 06:39:21 PM
A friend of mine also have the exact same problem. His mac is a 2.3GHz Intel Corei5 with 8GB ram.
So... not exactly a tree sloth of a computer, and it has taken a few days.. and now it is sitting at around 70% at not appearing to make any further progress.. he cant see any any errors being thrown, but..maybe is happens sometimes. Most of the time Bitcoin core have no problem at all.


Title: Re: Reindexing blocks (5 years...)
Post by: Antena on February 29, 2016, 07:03:09 PM
Anyone know if there's any way to accelerate this reindex?


Title: Re: Reindexing blocks (5 years...)
Post by: achow101 on February 29, 2016, 07:29:26 PM
Anyone know if there's any way to accelerate this reindex?
Get better hardware. :P

I think the setting the -dbcache=<n> where N is the size in megabytes of the cache to a larger size might make it faster.


Title: Re: Reindexing blocks (5 years...)
Post by: whizz94 on February 29, 2016, 07:42:35 PM
I think that a full reindex is slower and less reliable than anyone likes to admit to.
0.12.0 has changed some stuff which might index the chain differently enough to want reindexing.
In linux at a terminal,
after [file][quit] to stop bitcoin if it had autostarted at login,
bitcoin-qt -reindex -datadir=/home/username/.bitcoin &

I'd expect that to run for three days straight on an average 3GHz quadcore such as an i5 with plenty (>=3GB) of RAM
If that runs for a random length of time between an hour and a day before crashes, try moving (?deleting) /.bitcoin/database/ and /.bitcoin/peers.dat and then
bitcoin-qt -reindex -datadir=/home/username/.bitcoin &

Once a reindex has completed, you can start BTC as normal at login or from its icon, and it remembers the location of your /.bitcoin/

As for how to speed things up, it is indexing every BTC transaction ever.  Perhaps could someone comment on pruned nodes ?


Title: Re: Reindexing blocks (5 years...)
Post by: shorena on March 01, 2016, 09:09:20 AM
I think that a full reindex is slower and less reliable than anyone likes to admit to.

Its needed to fix certain errors, not sure what time frame you consider "slower than like to admit".

0.12.0 has changed some stuff which might index the chain differently enough to want reindexing.
In linux at a terminal,
after [file][quit] to stop bitcoin if it had autostarted at login,
bitcoin-qt -reindex -datadir=/home/username/.bitcoin &

You dont have to pass the default datadir.

I'd expect that to run for three days straight on an average 3GHz quadcore such as an i5 with plenty (>=3GB) of RAM

Id expect <24 hours with 0.12.

If that runs for a random length of time between an hour and a day before crashes, try moving (?deleting) /.bitcoin/database/ and /.bitcoin/peers.dat and then
bitcoin-qt -reindex -datadir=/home/username/.bitcoin &

Why delete the peers.dat? Also there is no /.bitcoin/database folder, are you refering to chainstate maybe?

Once a reindex has completed, you can start BTC as normal at login or from its icon, and it remembers the location of your /.bitcoin/

As for how to speed things up, it is indexing every BTC transaction ever.  Perhaps could someone comment on pruned nodes ?

Pruned nodes dont store the entire blockchain, but only a part of it. What exactly is your question?



Anyone know if there's any way to accelerate this reindex?
Get better hardware. :P

I think the setting the -dbcache=<n> where N is the size in megabytes of the cache to a larger size might make it faster.

dbcache=4096 is a speedup, but it will result in core using ~5.5 GB of memory.

I recently did a full sync in 8.5 hours[1] with 2/4 i5 cores on a mechanical disk. It significantly slows shutdown time though, so I wouldnt use that as a normal setting.

[1] https://bitcointalk.org/index.php?topic=1357766.msg14008753#msg14008753


Title: Re: Reindexing blocks (5 years...)
Post by: Antena on March 03, 2016, 02:44:49 PM
Anyone can tell me an online secure wallet to avoid these problems?

Already past 4 days and i the counter show me 1 year and six weeks yet...



Title: Re: Reindexing blocks (5 years...)
Post by: ZonedOutSpace on March 03, 2016, 02:53:42 PM
Anyone can tell me one online secure wallet to avoid these problems?

Already past 4 days and i the counter show me 1 year and six weeks yet...



Maybe try https://www.electrum.org/ it's a desktop client that you don't need to sync


Title: Re: Reindexing blocks (5 years...)
Post by: Antena on March 05, 2016, 03:49:13 PM
Anyone can tell me one online secure wallet to avoid these problems?

Already past 4 days and i the counter show me 1 year and six weeks yet...



Maybe try https://www.electrum.org/ it's a desktop client that you don't need to sync

Thank you i will try it.


The reindexing now rest 43 weeks. Frustrating experience with this Bictoin Core to 0.12.0.


Title: Re: Reindexing blocks (5 years...)
Post by: ZonedOutSpace on March 07, 2016, 07:03:58 PM
Anyone can tell me one online secure wallet to avoid these problems?

Already past 4 days and i the counter show me 1 year and six weeks yet...



Maybe try https://www.electrum.org/ it's a desktop client that you don't need to sync

Thank you i will try it.


The reindexing now rest 43 weeks. Frustrating experience with this Bictoin Core to 0.12.0.

How did it work for you?


Title: Re: Reindexing blocks (5 years...)
Post by: Antena on March 07, 2016, 07:09:15 PM
Quote

How did it work for you?

Worked so simple which i have fear about his securance.
It's really secure?



Title: Re: Reindexing blocks (5 years...)
Post by: ZonedOutSpace on March 08, 2016, 06:23:53 PM
Quote

How did it work for you?

Worked so simple which i have fear about his securance.
It's really secure?



Yes just keep your seed safe
You could generate a new seed with 2FA for added security!  ;)


Title: Re: Reindexing blocks (5 years...)
Post by: Antena on March 08, 2016, 07:05:01 PM
Quote

How did it work for you?

Worked so simple which i have fear about his securance.
It's really secure?



Yes just keep your seed safe
You could generate a new seed with 2FA for added security!  ;)

I don't know nothing about it. Can you explain, please?


Title: Re: Reindexing blocks (5 years...)
Post by: ZonedOutSpace on March 08, 2016, 09:31:35 PM
Quote

How did it work for you?

Worked so simple which i have fear about his securance.
It's really secure?



Yes just keep your seed safe
You could generate a new seed with 2FA for added security!  ;)

I don't know nothing about it. Can you explain, please?

You can read more about Electrum 2FA here http://docs.electrum.org/en/latest/2fa.html


Title: Re: Reindexing blocks (5 years...)
Post by: Antena on March 08, 2016, 10:22:16 PM
Quote

How did it work for you?

Worked so simple which i have fear about his securance.
It's really secure?



Yes just keep your seed safe
You could generate a new seed with 2FA for added security!  ;)

I don't know nothing about it. Can you explain, please?

You can read more about Electrum 2FA here http://docs.electrum.org/en/latest/2fa.html

Thank you. Tryed this one but not work's on windows as they say in donwload page

"Note: The QR code scanner is not supported in Windows binaries"


Title: Re: Reindexing blocks (5 years...)
Post by: ZonedOutSpace on March 08, 2016, 10:26:55 PM
Quote

How did it work for you?

Worked so simple which i have fear about his securance.
It's really secure?



Yes just keep your seed safe
You could generate a new seed with 2FA for added security!  ;)

I don't know nothing about it. Can you explain, please?

You can read more about Electrum 2FA here http://docs.electrum.org/en/latest/2fa.html

Thank you. Tryed this one but not work's on windows as they say in donwload page

"Note: The QR code scanner is not supported in Windows binaries"

I'm using linux, sorry didn't see that :p


Title: Re: Reindexing blocks (5 years...)
Post by: defined on March 08, 2016, 10:47:11 PM
Anyone can tell me an online secure wallet to avoid these problems?
Choose your Bitcoin wallet (https://bitcoin.org/en/choose-your-wallet)