dcrd/blockchain/stake
Josh Rickmar e206421edd Optimize coinbase output tax check.
Profiling indicated that significant time was being spent validating
coinbase outputs, ensuring that they paid to the development
organization's P2SH tax address.  This check was more inefficient than
necessary for a couple of reasons:

* The tax address was always decoded from a string to a dcrutil.Address.

* The actual script being validated was always parsed for addresses to
  check if they matched the tax address.

Neither of these are needed.  To optimize the algorithm, only the
equality of the output script and script version are checked.
2016-10-07 16:39:40 -04:00
..
internal Replace the ticket database with an efficient, atomic implementation 2016-10-04 13:40:19 -04:00
doc.go docs: Add/update doc.go in a few spots (#277) 2016-07-08 11:09:32 -05:00
error_test.go Replace the ticket database with an efficient, atomic implementation 2016-10-04 13:40:19 -04:00
error.go Replace the ticket database with an efficient, atomic implementation 2016-10-04 13:40:19 -04:00
log.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
lottery_test.go Replace the ticket database with an efficient, atomic implementation 2016-10-04 13:40:19 -04:00
lottery.go stake: Correct prng uint32 rollover. (#403) 2016-10-06 13:20:13 -05:00
staketx_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
staketx.go Replace the ticket database with an efficient, atomic implementation 2016-10-04 13:40:19 -04:00
tickets_test.go Optimize coinbase output tax check. 2016-10-07 16:39:40 -04:00
tickets.go Replace the ticket database with an efficient, atomic implementation 2016-10-04 13:40:19 -04:00