diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2019-04-04 00:39:04 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2019-04-13 18:52:11 -0700 |
commit | 510c6532bae9abc5beda1c126c945923a64680cb (patch) | |
tree | 08817bc88ad774370833066ca14714a6f8a2d262 /src/rpc/util.h | |
parent | ba54342c9dd3f2e5cdeed9ac57f1924f0d885cc6 (diff) |
Extract ParseDescriptorRange
So as to be consistently informative when the checks fail, and
to protect against unintentional divergence among the checks.
Diffstat (limited to 'src/rpc/util.h')
-rw-r--r-- | src/rpc/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h index e4cc1fde44..d2edf30e02 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -39,7 +39,7 @@ RPCErrorCode RPCErrorFromTransactionError(TransactionError terr); UniValue JSONRPCTransactionError(TransactionError terr, const std::string& err_string = ""); //! Parse a JSON range specified as int64, or [int64, int64] -std::pair<int64_t, int64_t> ParseRange(const UniValue& value); +std::pair<int64_t, int64_t> ParseDescriptorRange(const UniValue& value); struct RPCArg { enum class Type { |