Bitcoin Forum
May 28, 2024, 05:56:17 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain reset starts eariler than specified  (Read 761 times)
raze (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile
June 06, 2013, 01:33:23 AM
 #1

Hey guys, I'm not sure if this issue has been raised before or if I'm missing something but whenever I try to reset the blockchain to the day before, it starts ~a few weeks before the day that I specify. Is there a minimum timeframe for this action/is this normal?

It also appears that the reset blockchain feature has sped up a lot since upgrading, nice work Smiley

BTC --16FPbgyUZdTm1voAfi26VZ3RH7apTFGaPm
LTC -- Lhd3gmj84BWqx7kQgqUA7gyoogsLeJbCXb
PPC -- PRpKGjgjNLFv8eR7VVv7jBaP8aexDFqk4C
jim618
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
June 06, 2013, 09:08:47 AM
 #2

Hi Raze,

You are correct - it is to do with how the new blockchain store works.

Previously MultiBit stored every header for every block. This was a file about 16MB in size and was included in the download.

Now there is a file containing checkpoints every 2,000 blocks or so. This is only 12KB.
When you do a reset or an import it looks back through the checkpoints file and goes back to the last checkpoint which is a bit before the date it wants to reset to. Often it needs to go back an extra week or two.

The last checkpoint is set a month ago (when the installer is built) and there is another small store which contains every header for the last month. This 'tops up' the checkpoints to get to the present day. On a reset this small store is rebuilt so you often go back to the last checkpoint.

There are a few possible improvements that can be made:
+ automatically download a signed checkpoints file from multibit.org so that it is kept up to date
+ as the checkpoints and block store are only small it would be possible to have one per wallet and then each wallet could sync independently. I'm not sure this is worth the effort in doing though as the time is probably better spent on other things.

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
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!