Branch: refs/heads/master
  Home:   https://github.com/conformal/btcchain
  Commit: b041971ca88d3d61106f6b5f6006201b89cda93a
      
https://github.com/conformal/btcchain/commit/b041971ca88d3d61106f6b5f6006201b89cda93a
  Author: Dave Collins <[email protected]>
  Date:   2014-03-02 (Sun, 02 Mar 2014)

  Changed paths:
    M accept.go
    M difficulty.go

  Log Message:
  -----------
  Export CalcNextRequiredDifficutly function.

This commit exports a new variant of the existing internal
calcNextRequiredDifficulty function which calculates and returns the next
required difficulty for a block after the end of the current best chain
based on the difficulty retarget rules.

In order to support the exported function the internal one was slightly
modified to accept the block timestamp instead of an entire block since
the timestamp is all that is needed and the caller of the exported
function might next have a full block yet.


Reply via email to