This reworks defunding and concluding to prepare us for long lived channels.
Some of the big changes:
Defunding no longer attempts to withdraw, it just updates ledger channels to allocate funds back to the players. This way the ledger channel can be re-used.
A new protocol close-ledger-channel has been added which is responsible for concluding a ledger channel, and withdrawing the funds from the channel.
Concluding has been refactored to use these protocols and been slimmed down to one reducer instead of two.
This reworks defunding and concluding to prepare us for long lived channels.
Some of the big changes:
close-ledger-channel
has been added which is responsible for concluding a ledger channel, and withdrawing the funds from the channel.