mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge 06ea2783a2 into merged_master (Bitcoin PR bitcoin/bitcoin#25220)
This commit is contained in:
commit
95d6ba74ad
3 changed files with 11 additions and 8 deletions
|
|
@ -195,11 +195,11 @@ static RPCHelpMan createmultisig()
|
|||
result.pushKV("descriptor", descriptor->ToString());
|
||||
|
||||
UniValue warnings(UniValue::VARR);
|
||||
if (!request.params[2].isNull() && OutputTypeFromDestination(dest) != output_type) {
|
||||
if (descriptor->GetOutputType() != output_type) {
|
||||
// Only warns if the user has explicitly chosen an address type we cannot generate
|
||||
warnings.push_back("Unable to make chosen address type, please ensure no uncompressed public keys are present.");
|
||||
}
|
||||
if (warnings.size()) result.pushKV("warnings", warnings);
|
||||
if (!warnings.empty()) result.pushKV("warnings", warnings);
|
||||
|
||||
return result;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue