← Back to the archive
Bitcoin.onl > Archive > Bitcoin Forum > Re: [PATCH] Automatic block validation
AuthorTopic: Re: [PATCH] Automatic block validation
satoshiFounderSr. Member★★★★
Re: [PATCH] Automatic block validation
« on: August 16, 2010, 05:08:02 PM UTC »

It would probably be possible to initiate an AddToBlockIndex or Reorganize after the check, but it would require a lot more careful attention.  I probably should break out part of AddToBlockIndex that sets the new best block.  I'll probably end up doing that instead of the code below.
This is what I ended up doing in SVN rev 139.

Instead of deleting the bad chain, I added an extra CheckBlock to ConnectBlock so bad blocks can't get back into the best chain once they're kicked out.
Original: view the exact post on bitcointalk.org ↗Text compiled by the Satoshi Nakamoto Institute, used under CC BY-SA 4.0. Formatting by Bitcoin.onl.
© Bitcoin.onl · Home