Goals are to simplify code, improve test coverage, and clean up tech debt.
Subcomponents of the task are:
- Add flags to their appropriate categories, such as mandatory flags, or standard flags.
- Add CHECKDATASIG to standard flags.
- Add DER to mandatory flags.
- Add SIGPUSHONLY to mandatory flags.
- Add CLEANSTACK to mandatory flags.
- Delete the STANDARD+CDS group of flags as CDS should be standard.
- Convert activation tests to feature tests.
- Change logic of SCRIPT_ALLOW_SEGWIT_RECOVERY flags from "permissive" to "restrictive" where possible (eg. SCRIPT_ALLOW_SEGWIT_RECOVERY could be replaced with (SCRIPT_DISALLOW_SEGWIT_RECOVERY).
- Remove Schnorr activation, make it "always on"or simplify Segwit Recovery activation.
- Remove or simplify Segwit Recovery activationAdd "SCRIPT_DISALLOW_SEGWIT_RECOVERY" to standard flags.
- Remove Schnorr activation, make it "always on". Remove SCRIPT_ENABLE_SCHNORR flag.
- Change GreatWall activation from MTP to block height.