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