mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Merge 2aff9a36c3 into merged_master (Bitcoin PR bitcoin/bitcoin#30352)
This commit is contained in:
commit
cd6ec40d0f
24 changed files with 202 additions and 6 deletions
|
|
@ -3313,6 +3313,8 @@ static bool VerifyWitnessProgram(const CScriptWitness& witness, int witversion,
|
|||
}
|
||||
return set_success(serror);
|
||||
}
|
||||
} else if (!is_p2sh && CScript::IsPayToAnchor(witversion, program)) {
|
||||
return true;
|
||||
} else {
|
||||
if (flags & SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM) {
|
||||
return set_error(serror, SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue