mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
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:
@@ -912,10 +912,13 @@ static struct trail *try_input(const struct state_data *sdata,
|
|||||||
* 1) We deferred, OR
|
* 1) We deferred, OR
|
||||||
* 2) We get repeated BITCOIN_ANCHOR_OTHERSPEND, OR
|
* 2) We get repeated BITCOIN_ANCHOR_OTHERSPEND, OR
|
||||||
* 3) We pass through NORMAL state.
|
* 3) We pass through NORMAL state.
|
||||||
|
*
|
||||||
|
* And if we're rendering the dot diagram, don't bother.
|
||||||
*/
|
*/
|
||||||
if (effect->defer != INPUT_NONE
|
if (effect->defer != INPUT_NONE
|
||||||
|| newstate == STATE_NORMAL_LOWPRIO
|
|| newstate == STATE_NORMAL_LOWPRIO
|
||||||
|| i == BITCOIN_ANCHOR_OTHERSPEND) {
|
|| i == BITCOIN_ANCHOR_OTHERSPEND
|
||||||
|
|| dot_enable) {
|
||||||
tal_free(effect);
|
tal_free(effect);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user