eclair
eclair copied to clipboard
[WIP] Handle mutual close in state `DATA_WAIT_FOR_FUNDING_CONFIRMED`
This is a clone of #358 which apparently lost track of the remote branch (unknown repository
).
c537266 that's your favorite bug @btcontract
@btcontract I actually got bitten too! see 21c37e4
There are several more problems with this PR:
- mutual close should also be supported in
WAIT_FOR_FUNDING_LOCKED
- the reconnection logic should handle the case where we have already sent a
shutdown
- I don't really like the fact that sending two
CMD_CLOSE
results in a force close; maybe we should rely on a feature bit to announce whether or not we support early close (cc @sstone)