MCPcopy Create free account
hub / github.com/ElementsProject/lightning / channel_state_closed

Function channel_state_closed

lightningd/channel.h:677–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675}
676
677static inline bool channel_state_closed(enum channel_state state)
678{
679 switch (state) {
680 case CHANNELD_AWAITING_LOCKIN:
681 case DUALOPEND_OPEN_INIT:
682 case DUALOPEND_OPEN_COMMIT_READY:
683 case DUALOPEND_OPEN_COMMITTED:
684 case DUALOPEND_AWAITING_LOCKIN:
685 case CHANNELD_NORMAL:
686 case CHANNELD_AWAITING_SPLICE:
687 case CLOSINGD_SIGEXCHANGE:
688 case CHANNELD_SHUTTING_DOWN:
689 return false;
690 case CLOSINGD_COMPLETE:
691 case AWAITING_UNILATERAL:
692 case FUNDING_SPEND_SEEN:
693 case ONCHAIN:
694 case CLOSED:
695 return true;
696 }
697 abort();
698}
699
700/* Not even in the database yet? */
701static inline bool channel_state_uncommitted(enum channel_state state)

Callers 1

handle_peer_spokeFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected