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

Function channel_state_uncommitted

lightningd/channel.h:701–722  ·  view source on GitHub ↗

Not even in the database yet? */

Source from the content-addressed store, hash-verified

699
700/* Not even in the database yet? */
701static inline bool channel_state_uncommitted(enum channel_state state)
702{
703 switch (state) {
704 case DUALOPEND_OPEN_INIT:
705 return true;
706 case DUALOPEND_OPEN_COMMIT_READY:
707 case DUALOPEND_OPEN_COMMITTED:
708 case CHANNELD_AWAITING_LOCKIN:
709 case DUALOPEND_AWAITING_LOCKIN:
710 case CHANNELD_NORMAL:
711 case CHANNELD_AWAITING_SPLICE:
712 case CLOSINGD_SIGEXCHANGE:
713 case CHANNELD_SHUTTING_DOWN:
714 case CLOSINGD_COMPLETE:
715 case AWAITING_UNILATERAL:
716 case FUNDING_SPEND_SEEN:
717 case ONCHAIN:
718 case CLOSED:
719 return false;
720 }
721 abort();
722}
723
724/* Established enough, that we could reach out to peer to discuss */
725static 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