Branch: refs/heads/master
  Home:   https://github.com/conformal/btcchain
  Commit: 50b6e10b5781772b0f6a506535f575d81a95dc7a
      
https://github.com/conformal/btcchain/commit/50b6e10b5781772b0f6a506535f575d81a95dc7a
  Author: Dave Collins <[email protected]>
  Date:   2014-02-21 (Fri, 21 Feb 2014)

  Changed paths:
    M accept.go
    M process.go

  Log Message:
  -----------
  Reject blocks that fork before previous checkpoint.

This commit adds an additional check to the block acceptance rules which
prevents new blocks that fork the main chain before the previous known
good checkpoint.  This prevents storage of new, otherwise valid, blocks
from building off of old blocks which are likely at a much easier
difficulty and therefore could be used to waste cache and disk space.

Note this is slightly different than the other existing check which
prevents blocks with a timestamp before the timestamp of the latest known
good checkpoint since that check effectively prevents old side chain
blocks that already existed (per the claimed timestamp).

ok drahn@


  Commit: b25bf566b09bde9144a08af8ba1a693c5dd03c74
      
https://github.com/conformal/btcchain/commit/b25bf566b09bde9144a08af8ba1a693c5dd03c74
  Author: Dave Collins <[email protected]>
  Date:   2014-02-21 (Fri, 21 Feb 2014)

  Changed paths:
    M accept.go
    M checkpoints.go
    M process.go

  Log Message:
  -----------
  Rename findLatestKnownCheckpoint.

The name findLatestKnownCheckpoint is confusing and doesn't really convey
the fact the purpose of the function is to the find the checkpoint prior
to the current known block.

Therefore, rename the function to findPreviousCheckpoint for clarity.

Also, update some comments to follow suit.


Compare: 
https://github.com/conformal/btcchain/compare/149d8176b0ff...b25bf566b09b

Reply via email to