mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
policy: make anchor spend standard
Only standard when non-nested.
This commit is contained in:
parent
455fca86cf
commit
b60aaf8b23
1 changed files with 2 additions and 0 deletions
|
@ -1943,6 +1943,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
Reference in a new issue