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.
- Simplify activation logic after upgrades, remove activation completely where possible.
- Convert activation tests to feature tests.
- Change logic of flags from "permissive" to "restrictive" where possible (eg. SCRIPT_ALLOW_SEGWIT_RECOVERY could be replaced with SCRIPT_DISALLOW_SEGWIT_RECOVERY).