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>
This commit is contained in:
Rusty Russell
2015-09-25 11:51:18 +09:30
parent 29f22c165d
commit d88f96de17

View File

@@ -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;
}