File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -601,6 +601,29 @@ static inline bool channel_state_failing_onchain(enum channel_state state)
601
601
abort ();
602
602
}
603
603
604
+ static inline bool channel_state_funding_spent_onchain (enum channel_state state )
605
+ {
606
+ switch (state ) {
607
+ case CHANNELD_AWAITING_LOCKIN :
608
+ case CHANNELD_NORMAL :
609
+ case CHANNELD_AWAITING_SPLICE :
610
+ case CLOSINGD_SIGEXCHANGE :
611
+ case CHANNELD_SHUTTING_DOWN :
612
+ case CLOSINGD_COMPLETE :
613
+ case DUALOPEND_OPEN_INIT :
614
+ case DUALOPEND_OPEN_COMMIT_READY :
615
+ case DUALOPEND_OPEN_COMMITTED :
616
+ case DUALOPEND_AWAITING_LOCKIN :
617
+ case AWAITING_UNILATERAL :
618
+ return false;
619
+ case CLOSED :
620
+ case FUNDING_SPEND_SEEN :
621
+ case ONCHAIN :
622
+ return true;
623
+ }
624
+ abort ();
625
+ }
626
+
604
627
static inline bool channel_state_pre_open (enum channel_state state )
605
628
{
606
629
switch (state ) {
You can’t perform that action at this time.
0 commit comments