Bitcoin Forum

Bitcoin => Armory => Topic started by: btc123thatthere on January 30, 2017, 11:04:19 AM



Title: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 30, 2017, 11:04:19 AM
Hi there

Armory is finding only 450021 blocks out of 450716.

I did what I've been doing that's worked up until now: Open bitcoin core and let it update (it got up to 450716 no problem), then open Armory and stays updated too. Except this time it's not even getting up to the latest block.

Thanks


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: goatpig on January 30, 2017, 11:15:57 AM
Rebuild & rescan.


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 30, 2017, 11:22:28 AM
That's what I'm doing at the moment. (7%)
I suspect it won't work still as it says "Found 450022 headers from db" instead of "450716".
I also tried letting it start bitcoin core itself and it made no difference.


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 30, 2017, 11:28:44 AM
It says "scanning new blocks from #-1 to #450021" instead of 450716.


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: goatpig on January 30, 2017, 11:40:50 AM
You did a rebuild first?


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 30, 2017, 11:47:08 AM
Pretty sure I clicked on "Rebuild and Rescan Databases"
It's up to 25%.
I'm trying to think of what has changed / happened since it was working last, but I can't think of anything unusual.
Still can't figure out why it's only seeing 450021 blocks. It's seeing all 756 .dat files. ("rev00756.dat" in "blocks" folder.)


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 30, 2017, 11:52:00 AM
Maybe I clicked on "Rescan Balance" or "Rescan Databases".
When it's done, I'll click on "Rebuild and Rescan Databases" just to be sure.


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 30, 2017, 11:56:44 AM
It says "BlockchainScanner.cpp:650".
Is there a way to kill it? I tried re-starting the program but it continued where it left off.
Although up the top it says "DatabaseBuilder.cpp", so I guess it did do a re-build first actually.


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 30, 2017, 12:28:25 PM
Up to 43%.


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: goatpig on January 30, 2017, 12:48:08 PM
If you picked rebuild, it would go through all blk files before scanning. This is when it would either pick all new blocks or give you an error about at least one block it failed to read.

To be on the safe side, just delete the block file folder.

If you want to halt he build, just kill the ArmoryDB process.


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 30, 2017, 01:07:57 PM
When you say "the block file folder", do you mean "AppData\Roaming\Bitcoin\blocks"? I don't wanna delete that cause I'd have to download 107gbyte again.

Which folder did you mean?
Or, would deleting "rev00756.dat" work, so that bitcoinqt could rebuild it?
(Tried moving rev00756.dat and bitcoinqt just returned an error, so I put it back again and continued.)


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 30, 2017, 01:13:23 PM
I killed the kill the ArmoryDB process, then the main Armory window, then restarted Armory, and it went back to where it left off with "Scanning Transaction History".
Update: 87%


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 30, 2017, 02:38:57 PM
Okay it got to 100% and no difference.
I've just started "Rebuild and Rescan Databases". Will check it in the morning.


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: goatpig on January 30, 2017, 05:41:35 PM
When you say "the block file folder", do you mean "AppData\Roaming\Bitcoin\blocks"? I don't wanna delete that cause I'd have to download 107gbyte again.

Which folder did you mean?
Or, would deleting "rev00756.dat" work, so that bitcoinqt could rebuild it?
(Tried moving rev00756.dat and bitcoinqt just returned an error, so I put it back again and continued.)

You don't have to delete the folder. If you want to "rewind" back some blocks, you can just delete the equivalent blkXXXXX.dat files. Ignore the rev files.

In your case, Armory isn't seeing the last 700 blocks or so, do I'd the last 8~9 blk files to try and fix the issue, if the rebuild fails to.


Title: Re: Armory finding only 450021 blocks out of 450716
Post by: btc123thatthere on January 31, 2017, 02:59:47 AM
When I woke up, the "Rebuild and Rescan Databases" had done the trick.
It's also staying updated.
Didn't have to delete any blkXXXXX.dat files.
Cheers