mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-14 22:00:44 +02:00
IsUsedDestination shouldn't use key id as script id for ScriptHash
This commit is contained in:
parent
45f151913e
commit
4b8f1e989f
@ -734,7 +734,7 @@ bool CWallet::IsUsedDestination(const uint256& hash, unsigned int n) const
|
|||||||
if (GetDestData(wpkh_dest, "used", nullptr)) {
|
if (GetDestData(wpkh_dest, "used", nullptr)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
ScriptHash sh_wpkh_dest(wpkh_dest);
|
ScriptHash sh_wpkh_dest(GetScriptForDestination(wpkh_dest));
|
||||||
if (GetDestData(sh_wpkh_dest, "used", nullptr)) {
|
if (GetDestData(sh_wpkh_dest, "used", nullptr)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user