diff options
| author | Gregory Sanders <[email protected]> | 2020-01-14 13:23:24 -0500 |
|---|---|---|
| committer | Gregory Sanders <[email protected]> | 2020-01-14 13:23:24 -0500 |
| commit | 4b8f1e989f3b969dc628b0801d5c31ebd373719c (patch) | |
| tree | c1feacb564e5096c12281a905d620bb9c707826e /src/wallet/wallet.cpp | |
| parent | Merge #16373: bumpfee: Return PSBT when wallet has privkeys disabled (diff) | |
| download | discoin-4b8f1e989f3b969dc628b0801d5c31ebd373719c.tar.xz discoin-4b8f1e989f3b969dc628b0801d5c31ebd373719c.zip | |
IsUsedDestination shouldn't use key id as script id for ScriptHash
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 d3968eaea..cc6eebba9 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; } |