aboutsummaryrefslogtreecommitdiff
path: root/src/wallet_ismine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet_ismine.cpp')
-rw-r--r--src/wallet_ismine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet_ismine.cpp b/src/wallet_ismine.cpp
index a3c221d3ab..07149ebd0b 100644
--- a/src/wallet_ismine.cpp
+++ b/src/wallet_ismine.cpp
@@ -29,8 +29,7 @@ unsigned int HaveKeys(const vector<valtype>& pubkeys, const CKeyStore& keystore)
isminetype IsMine(const CKeyStore &keystore, const CTxDestination& dest)
{
- CScript script;
- script.SetDestination(dest);
+ CScript script = GetScriptForDestination(dest);
return IsMine(keystore, script);
}