[prev in list] [next in list] [prev in thread] [next in thread] 

List:       btcd-commits
Subject:    [btcsuite/btcd] 2799dd: mining: Remove comment and change fee calc to int.
From:       Dave Collins <davec () conformal ! com>
Date:       2015-11-24 3:56:07
Message-ID: 5653dfd7788c_7af53f82062812bc1349c9 () hookshot-fe6-cp1-prd ! iad ! github ! net ! mail
[Download RAW message or body]


  Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: 2799ddf538cddc5721f58761d7f60ddb7e766a6b
      https://github.com/btcsuite/btcd/commit/2799ddf538cddc5721f58761d7f60ddb7e766a6b
  Author: Dave Collins <davec@conformal.com>
  Date:   2015-11-23 (Mon, 23 Nov 2015)

  Changed paths:
    M mining.go

  Log Message:
  -----------
  mining: Remove comment and change fee calc to int.

Now that the memory pool minimum fee calculation code is also
calculating a more precise value instead of rounding up to the nearest
kilobyte boundary, the comment in NewBlockTemplate regarding this
behavior is no longer accurate.  Thus, this removes the comment.

Also, while here, change the calculation to use an int64 instead of
float since it matches the precision of the new calculation code used by
the memory pool and can also avoid the need for the slower floating
point math.




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic