mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
channel_states: fold all the ONCHAIND states into one.
The billboard is now far more useful to tell what's going on, and this gets us closer to a state == owner mapping. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
866ba00445
commit
cccdb53bec
@@ -344,11 +344,8 @@ void peer_connected(struct lightningd *ld, const u8 *msg,
|
||||
#endif
|
||||
|
||||
switch (channel->state) {
|
||||
case ONCHAIND_CHEATED:
|
||||
case ONCHAIND_THEIR_UNILATERAL:
|
||||
case ONCHAIND_OUR_UNILATERAL:
|
||||
case ONCHAIN:
|
||||
case FUNDING_SPEND_SEEN:
|
||||
case ONCHAIND_MUTUAL:
|
||||
case CLOSINGD_COMPLETE:
|
||||
/* Channel is active! */
|
||||
abort();
|
||||
|
||||
Reference in New Issue
Block a user