dcrd/cmd
Dave Collins 20a8ccc27b
blockchain: Use hash values in structs.
This modifies the BestState struct in the blockchain package to store
hashes directly instead of pointers to them and updates callers to deal
with the API change in the exported BestState struct.

In general, the preferred approach for hashes moving forward is to store
hash values in complex data structures, particularly those that will be
used for cache entries, and accept pointers to hashes in arguments to
functions.

Some of the reasoning behind making this change is:

- It is generally preferred to avoid storing pointers to data in cache
  objects since doing so can easily lead to storing interior pointers into
  other structs that then can't be GC'd
- Keeping the hash values directly in the structs provides better
  cache locality
2018-01-30 13:37:26 -06:00
..
addblock Merge remaining dcrutil code into a dcrd package. 2017-10-11 22:06:36 -04:00
checkdevpremine stake/multi: Don't return errors for IsX functions. 2018-01-30 10:20:12 -06:00
dcrctl Bump for v1.1.2 2017-11-20 18:53:16 -06:00
findcheckpoint blockchain: Use hash values in structs. 2018-01-30 13:37:26 -06:00
gencerts Merge remaining dcrutil code into a dcrd package. 2017-10-11 22:06:36 -04:00
promptsecret Add new tool, promptsecret (#649) 2017-03-31 14:00:18 -04:00