aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2019-11-27 10:56:04 -0500
committerGregory Sanders <gsanders87@gmail.com>2020-01-03 17:20:46 -0500
commit09502452bbbe21bb974f1de8cf53196373921ab9 (patch)
tree04158fc82f0681682f28feded28957fd9f7f8994 /src/wallet/wallet.h
parentd8a66626d63135fd245d5afc524b88b9a94d208b (diff)
downloadbitcoin-09502452bbbe21bb974f1de8cf53196373921ab9.tar.xz
IsUsedDestination should count any known single-key address
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 51df4a9a8b..4a4b28e699 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -810,9 +810,8 @@ public:
bool IsSpent(const uint256& hash, unsigned int n) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
- // Whether this or any UTXO with the same CTxDestination has been spent.
- bool IsUsedDestination(const CTxDestination& dst) const;
- bool IsUsedDestination(const uint256& hash, unsigned int n) const;
+ // Whether this or any known UTXO with the same single key has been spent.
+ bool IsUsedDestination(const uint256& hash, unsigned int n) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
void SetUsedDestinationState(WalletBatch& batch, const uint256& hash, unsigned int n, bool used) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
std::vector<OutputGroup> GroupOutputs(const std::vector<COutput>& outputs, bool single_coin) const;