This replaces SCRIPT_ALLOW_SEGWIT_RECOVERY with SCRIPT_DISALLOW_SEGWIT_RECOVERY,
which has exactly the opposite meaning.
Functionality is unchanged.
Differential D3148
Invert meaning of Segwit Recovery flag. Mengerian on May 29 2019, 04:23. Authored by Tags None Subscribers None
Details
This replaces SCRIPT_ALLOW_SEGWIT_RECOVERY with SCRIPT_DISALLOW_SEGWIT_RECOVERY, Functionality is unchanged. make check Functional tests are unchanged, as this Diff is not intended to change
Diff Detail
Event TimelineComment Actions Looks good, indeed this appears to invert the flag without changing behaviour. However, just to be sure I'd quickly follow it up with a Diff that makes it an ordinary Standard flag.
Comment Actions @deadalnix I am trying to follow the step you outlined here: https://reviews.bitcoinabc.org/D3065#72372 The idea of this Diff is to change the meaning of the flag without changing the functional behavior. This helps to avoid making mistakes, since the functional test stays the same. Then the next Diff can change behavior with a very small change that is easier to check for correctness. If I remove activation and add to Standard now, that will change how the code behaves, and require also changing the functional test.
Comment Actions Add unit tests for "0 left on stack" case with segwit recovery disallowed. |