Skip to content

Commit 4b8f1e9

Browse files
committed
IsUsedDestination shouldn't use key id as script id for ScriptHash
1 parent 45f1519 commit 4b8f1e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ bool CWallet::IsUsedDestination(const uint256& hash, unsigned int n) const
734734
if (GetDestData(wpkh_dest, "used", nullptr)) {
735735
return true;
736736
}
737-
ScriptHash sh_wpkh_dest(wpkh_dest);
737+
ScriptHash sh_wpkh_dest(GetScriptForDestination(wpkh_dest));
738738
if (GetDestData(sh_wpkh_dest, "used", nullptr)) {
739739
return true;
740740
}

0 commit comments

Comments
 (0)