diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2019-02-08 15:29:45 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2019-02-08 15:29:45 -0500 |
commit | 50e647210d513dab8f40ded61fe439ecaa9a67c3 (patch) | |
tree | 35ff7860a0fc640c6ead14dcb1aca9d05c9da556 /src/rpc/util.h | |
parent | 2945492424934fa360f86b116184ee8e34f19d0a (diff) |
Move ParseConfirmTarget from rpc/mining to rpc/util
Util is a better home since it's called both by wallet and mining code.
Suggested https://github.com/bitcoin/bitcoin/pull/15288#discussion_r254449444
Diffstat (limited to 'src/rpc/util.h')
-rw-r--r-- | src/rpc/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h index 4a9d4be787..d34c9cfdbb 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -28,6 +28,9 @@ CScript CreateMultisigRedeemscript(const int required, const std::vector<CPubKey UniValue DescribeAddress(const CTxDestination& dest); +//! Parse a confirm target option and raise an RPC error if it is invalid. +unsigned int ParseConfirmTarget(const UniValue& value); + struct RPCArg { enum class Type { OBJ, |