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

Function channel_state_uncommitted

lightningd/channel.h:709–730  ·  view source on GitHub ↗

Not even in the database yet? */

Source from the content-addressed store, hash-verified

707
708/* Not even in the database yet? */
709static inline bool channel_state_uncommitted(enum channel_state state)
710{
711 switch (state) {
712 case DUALOPEND_OPEN_INIT:
713 return true;
714 case DUALOPEND_OPEN_COMMIT_READY:
715 case DUALOPEND_OPEN_COMMITTED:
716 case CHANNELD_AWAITING_LOCKIN:
717 case DUALOPEND_AWAITING_LOCKIN:
718 case CHANNELD_NORMAL:
719 case CHANNELD_AWAITING_SPLICE:
720 case CLOSINGD_SIGEXCHANGE:
721 case CHANNELD_SHUTTING_DOWN:
722 case CLOSINGD_COMPLETE:
723 case AWAITING_UNILATERAL:
724 case FUNDING_SPEND_SEEN:
725 case ONCHAIN:
726 case CLOSED:
727 return false;
728 }
729 abort();
730}
731
732/* Established enough, that we could reach out to peer to discuss */
733static inline bool channel_state_wants_peercomms(enum channel_state state)

Callers 15

json_listfundsFunction · 0.85
channel_err_brokenFunction · 0.85
dualopen_errmsgFunction · 0.85
peer_restart_dualopendFunction · 0.85
channel_internal_errorFunction · 0.85
peer_channels_cleanupFunction · 0.85
channel_errmsgFunction · 0.85
json_staticbackupFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected