mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Implicitly know about P2WPKH redeemscripts
Make CKeyStore automatically known about the redeemscripts necessary for P2SH-P2WPKH (and due to the extra checks in IsMine, also P2WPKH) spending.
This commit is contained in:
@@ -1307,7 +1307,7 @@ UniValue addwitnessaddress(const JSONRPCRequest& request)
|
||||
throw JSONRPCError(RPC_WALLET_ERROR, "Cannot convert between witness address types");
|
||||
}
|
||||
} else {
|
||||
pwallet->AddCScript(witprogram);
|
||||
pwallet->AddCScript(witprogram); // Implicit for single-key now, but necessary for multisig and for compatibility with older software
|
||||
pwallet->SetAddressBook(w.result, "", "receive");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user