aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2018-03-09 17:21:27 -0500
committerAndrew Chow <achow101-github@achow101.com>2018-03-13 12:39:26 -0400
commitce7435cf1ef36109595be9a3a3955afdff1d63e4 (patch)
treead93d328576d4d2f2f8e3bcbf46483bf4100e6ec /src/wallet/wallet.h
parent0185939be6f7c5554b864e33657ce610fd434e18 (diff)
Move output eligibility to a separate function
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index a2fab3c88e..d2389ae2b6 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -1190,6 +1190,9 @@ public:
* This function will automatically add the necessary scripts to the wallet.
*/
CTxDestination AddAndGetDestinationForScript(const CScript& script, OutputType);
+
+ /** Whether a given output is spendable by this wallet */
+ bool OutputEligibleForSpending(const COutput& output, const int nConfMine, const int nConfTheirs, const uint64_t nMaxAncestors) const;
};
/** A key allocated from the key pool. */