Browse Source

test/test_state_coverage: speed up dot diagram generation.

We don't need a full test for this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 10 years ago
parent
commit
d88f96de17
  1. 5
      test/test_state_coverage.c

5
test/test_state_coverage.c

@ -912,10 +912,13 @@ static struct trail *try_input(const struct state_data *sdata,
* 1) We deferred, OR
* 2) We get repeated BITCOIN_ANCHOR_OTHERSPEND, OR
* 3) We pass through NORMAL state.
*
* And if we're rendering the dot diagram, don't bother.
*/
if (effect->defer != INPUT_NONE
|| newstate == STATE_NORMAL_LOWPRIO
|| i == BITCOIN_ANCHOR_OTHERSPEND) {
|| i == BITCOIN_ANCHOR_OTHERSPEND
|| dot_enable) {
tal_free(effect);
return NULL;
}

Loading…
Cancel
Save