mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user