diff options
author | Gregory Sanders <gsanders87@gmail.com> | 2020-01-14 13:23:24 -0500 |
---|---|---|
committer | Gregory Sanders <gsanders87@gmail.com> | 2020-01-14 13:23:24 -0500 |
commit | 4b8f1e989f3b969dc628b0801d5c31ebd373719c (patch) | |
tree | c1feacb564e5096c12281a905d620bb9c707826e /src | |
parent | 45f151913ef5c7d4f7fb0f81e442fb6377dad353 (diff) |
IsUsedDestination shouldn't use key id as script id for ScriptHash
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d3968eaea1..cc6eebba97 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -734,7 +734,7 @@ bool CWallet::IsUsedDestination(const uint256& hash, unsigned int n) const if (GetDestData(wpkh_dest, "used", nullptr)) { return true; } - ScriptHash sh_wpkh_dest(wpkh_dest); + ScriptHash sh_wpkh_dest(GetScriptForDestination(wpkh_dest)); if (GetDestData(sh_wpkh_dest, "used", nullptr)) { return true; } |