mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
test/test_state_coverage: traverse main state loop less.
By terminating in either NORMAL state, we halve the time to run the coverage test. Before: real 0m50.083s After: real 0m28.548s Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
97e10e0a18
commit
80d23a0a61
@ -1620,6 +1620,7 @@ static struct trail *try_input(const struct state_data *sdata,
|
||||
*/
|
||||
if (effect->defer != INPUT_NONE
|
||||
|| newstate == STATE_NORMAL_LOWPRIO
|
||||
|| newstate == STATE_NORMAL_HIGHPRIO
|
||||
|| i == BITCOIN_ANCHOR_OTHERSPEND
|
||||
|| i == BITCOIN_ANCHOR_THEIRSPEND
|
||||
|| quick) {
|
||||
|
Loading…
Reference in New Issue
Block a user