IsUsedDestination shouldn't use key id as script id for ScriptHash
This commit is contained in:
1 parent
45f151913e
commit
4b8f1e989f
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user