Skip to content

Commit b60aaf8

Browse files
committed
policy: make anchor spend standard
Only standard when non-nested.
1 parent 455fca8 commit b60aaf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/script/interpreter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,6 +1943,8 @@ static bool VerifyWitnessProgram(const CScriptWitness& witness, int witversion,
19431943
}
19441944
return set_success(serror);
19451945
}
1946+
} else if (!is_p2sh && CScript::IsPayToAnchor(witversion, program)) {
1947+
return true;
19461948
} else {
19471949
if (flags & SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM) {
19481950
return set_error(serror, SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM);

0 commit comments

Comments
 (0)