diff options
| author | MarcoFalke <[email protected]> | 2018-09-27 11:26:17 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-09-27 11:26:29 -0400 |
| commit | 01211cea71016ceadfcbe98a8ec660a5071bd82e (patch) | |
| tree | 953e2498b0a08ef1a959d616c86c9a6d382bd3e1 /src/httpserver.cpp | |
| parent | Merge #14027: Skip stale tip checking if outbound connections are off or if r... (diff) | |
| parent | Consolidate redundant implementations of ParseHashStr (diff) | |
| download | discoin-01211cea71016ceadfcbe98a8ec660a5071bd82e.tar.xz discoin-01211cea71016ceadfcbe98a8ec660a5071bd82e.zip | |
Merge #14307: Consolidate redundant implementations of ParseHashStr
9c5af58d51 Consolidate redundant implementations of ParseHashStr (Ben Woosley)
Pull request description:
This change:
* adds a length check to all calls to `ParseHashStr`, appropriate given its use to populate
a 256-bit number from a hex str
* allows the caller to handle the failure, which allows for the more
appropriate `JSONRPCError` on failure in `prioritisetransaction` rpc
Relative to #14288
Tree-SHA512: baa791147e5ceb3c30c70df3981aaf807bf7d4a90a0be3625540b59aa4b9a9d303a452bfef18bf167cbb833ef9591b4ef5948bf4a1ce67b421d804ae8d20ea53
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions