mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
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. |
||
|---|---|---|
| .. | ||
| internal | ||
| doc.go | ||
| error_test.go | ||
| error.go | ||
| log.go | ||
| lottery_test.go | ||
| lottery.go | ||
| staketx_test.go | ||
| staketx.go | ||
| tickets_test.go | ||
| tickets.go | ||