message: Add some comments to further explain fork activation helpers
diff: @@ -126,6 +126,18 @@ void CBlockIndex::BuildSkip()
  pskip = pprev->GetAncestor(GetSkipHeight(nHeight));
  }
  +// According to UAHF spec there are 2 pre-conditions to get the fork activated:
  +//
  +// 1) First step is waiting for the first block to have GetMedianTimePast() (GMTP)
  +// be higher or equal then 1501590000 (Aug 1st 2017, 12:20:00 UTC). This block would
  +// be the last in common with the other branch to the fork.
  +// Let's call this block x-1. The match of this conditions will be called "Fork Enabled"
  +//
  +// 2) x-1 could be extended only by a block bigger than 1MB, so that size(block x) > 1MB
  +// The match of this conditions will be called "Fork Activated"
  +
  +// return true for every block from fork block and forward [x,+inf)
  +// fork activated
  bool CBlockIndex::forkActivated(int time)
  {
  if (time == 0)
  @@ -138,6 +150,8 @@ bool CBlockIndex::forkActivated(int time)
  return false;
  }
  +// return true only if we are exactly on the fork block [x,x]
  +// state: fork activated
  bool CBlockIndex::forkActivateNow(int time)
  {
  if (time == 0)
  @@ -145,6 +159,9 @@ bool CBlockIndex::forkActivateNow(int time)
  return (pprev && pprev->forkAtNextBlock(time));
  }
  +// This will check if the Fork will be enabled at the next block
  +// i.e. we are at block x - 1, [x-1, +inf]
  +// state fork: enabled or activated
  bool CBlockIndex::IsforkActiveOnNextBlock(int time)
  {
  if (time == 0)
  @@ -157,6 +174,9 @@ bool CBlockIndex::IsforkActiveOnNextBlock(int time)
  return false;
  }
  +// return true only if 1st condition is true (Median past time > UAHF time)
  +// and not the 2nd, i.e. we are at precisely [x-1,x-1]
  +// state: fork enabled
  bool CBlockIndex::forkAtNextBlock(int time)
  {
  if (time == 0)
  @@ -171,7 +191,6 @@ bool CBlockIndex::forkAtNextBlock(int time)
  return false;
  }
  -
  std::string CBlockFileInfo::ToString() const
  {
  return strprintf("CBlockFileInfo(blocks=%u, size=%u, heights=%u...%u, time=%s...%s)", nBlocks, nSize, nHeightFirst,
  