Browse Source

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>
ppa-0.6.1
Rusty Russell 9 years ago
parent
commit
80d23a0a61
  1. 1
      test/test_state_coverage.c

1
test/test_state_coverage.c

@ -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…
Cancel
Save