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 clearing signer signer flags to signer_unblocked
This attempts to refine the signer pending flag mutations +
move some signer flag logic into the `signer_unblocked`
method instead of our other lightning logic.
Before flow:
- Call function that asks for signature
- if absent, sets signer pending flag
- if present, clear signer pending flag
- Call `signer_unblocked` -> call the function again, and it'll set the
flags again depending on the result
After flow:
- Call function that asks for signature
- if absent, sets signer pending flag
- Call `signer_unblocked` -> clear the signer pending flag ->
call the function again, and it only resets the flag if unsuccessful
This moves the logic for all async commitment signatures, i.e.
funding_created, funding_signed, and commitment_signed.
0 commit comments