Browse Source

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

5
test/test_state_coverage.c

@ -644,11 +644,6 @@ static const char *apply_effects(struct state_data *sdata,
if (sdata->event_notifies & effect->watch->events)
return "event set twice";
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 ((sdata->event_notifies & effect->unwatch->events)

Loading…
Cancel
Save