diff options
author | Gregory Sanders <gsanders87@gmail.com> | 2020-01-14 13:23:24 -0500 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2020-01-15 09:58:56 +0000 |
commit | e2c45d89f7219fd5bcf19a6e04b291abbb4b5f95 (patch) | |
tree | 9360461819db27115eb7a12d6c7f2ed7b3c4b342 /src/wallet/wallet.cpp | |
parent | a5489c9892fc12cb70c6c7b017881a9218d0b041 (diff) | |
download | bitcoin-e2c45d89f7219fd5bcf19a6e04b291abbb4b5f95.tar.xz |
IsUsedDestination shouldn't use key id as script id for ScriptHash
Github-Pull: #17924
Rebased-From: 4b8f1e989f3b969dc628b0801d5c31ebd373719c
Diffstat (limited to 'src/wallet/wallet.cpp')
-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 2dfd60a913..4c3b633fe4 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1087,7 +1087,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; } |