test_state_coverage: fix dependent events.

These tests are wrong, and are handled properly anyway when they
fire (the other one is disabled).

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 42bf766d64
commit 92bb5f03de

View File

@@ -644,11 +644,6 @@ static const char *apply_effects(struct state_data *sdata,
if (sdata->event_notifies & effect->watch->events) if (sdata->event_notifies & effect->watch->events)
return "event set twice"; return "event set twice";
sdata->event_notifies |= effect->watch->events; sdata->event_notifies |= effect->watch->events;
/* Events are not independent. */
if (effect->watch->events & BITCOIN_ANCHOR_DEPTHOK)
sdata->event_notifies &= ~(1ULL<<BITCOIN_ANCHOR_TIMEOUT);
if (effect->watch->events & BITCOIN_ANCHOR_TIMEOUT)
sdata->event_notifies &= ~(1ULL<<BITCOIN_ANCHOR_DEPTHOK);
} }
if (effect->unwatch) { if (effect->unwatch) {
if ((sdata->event_notifies & effect->unwatch->events) if ((sdata->event_notifies & effect->unwatch->events)