dcrd/cmd
Dave Collins 4d20cc1217
stake/multi: Don't return errors for IsX functions.
This modifies the IsSStx, IsSSGen, and IsSSRtx functions to only return
a bool and introduces CheckSStx, CheckSSGen, and CheckSSRtx to return
the actual error as needed by consensus.

This is being done because "is" functions are much nicer to use when
they don't return an error and the callers that use them almost never
care why they aren't of the type, they just want to determine if they
are.  In the few cases where the caller does care, they can use of the
new check functions.

While here, also update the comments to call out what the more common
names for the transaction types are and to add comments to the test
functions for consistency.

Finally, it updates all callers in the repo accordingly.
2018-01-30 10:20:12 -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 Merge remaining dcrutil code into a dcrd package. 2017-10-11 22:06:36 -04: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