Closed arvidn closed 3 months ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
crates/chia-consensus/src/gen/conditions.rs | 2 | 99.45% | ||
<!-- | Total: | 2 | --> |
Totals | |
---|---|
Change from base Build 9785517758: | 1.9% |
Covered Lines: | 11554 |
Relevant Lines: | 13973 |
This PR is best reviewed one commit at a time, as the flags are fairly independent.
Now that the hard fork has activated, some feature flags are no longer necessary (as they are always enabled).
ENABLE_SOFTFORK_CONDITION
,AGG_SIG_ARGS
andCOND_ARGS_NIL
- these features are always-on now.The change around
AGG_SIG_ARGS
andCOND_ARGS_NIL
is probably the least obvious. Before the hard fork,AGG_SIG_ME
andAGG_SIG_UNSAFE
required exactly two arguments (as opposed to all other conditions, that allow unknown arguments). WhenAGG_SIG_ARGS
is set (as it is after the hard fork activation), theAGG_SIG_ME
andAGG_SIG_UNSAFE
conditions behave like the others. This is why the special cases can be removed inconditions.rs
, here.