You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move channel_ready check after processing transactions
In preparation for checking for confirmed splice funding transactions,
move the channel_ready check to after processing all newly confirmed
transactions. This will allow differentiating between the initial
funding transaction from a splice funding transaction. The former
results in channel_ready while the latter results in a splice_locked.
Note that doing this outside the processing loop is necessary because
check_get_channel_ready and get_announcement_sigs take &mut self, which
isn't possible when iterating over all funding scopes. Moving the checks
after processing means any mutations occurring in those methods will not
happen if an Err is returned in the processing loop. This should be fine
since it would result in a channel closure.
0 commit comments