Skip to content

🐛 [channel/machine, client] Sub-channel withdrawal without regist… #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

matthiasgeihs
Copy link
Contributor

…ering

The current implementation required a sub-channel to be registered on-chain before it could be withdrawn.
However, in the optimistic case, a sub-channel should be withdrawable into its parent channel without
blockchain interaction. We achieve this by modifying the state machine to allow for a transition from
phase final to phase withdrawing.

Signed-off-by: Matthias Geihs matthias@perun.network

Closes #58

@ggwpez
Copy link
Contributor

ggwpez commented May 3, 2021

I dont quite get the change.
You say that you change it for sub-channels, but the change in the machine also affects ledger channels, or not?
@matthiasgeihs

@matthiasgeihs
Copy link
Contributor Author

It affects all channels. The situation after the change is not perfect. But it is better than before. In the long run, we could reconsider our machine logic as a whole.

@ggwpez
Copy link
Contributor

ggwpez commented May 4, 2021

It affects all channels. The situation after the change is not perfect. But it is better than before. In the long run, we could reconsider our machine logic as a whole.

Ok.

After your change it is not possible anymore to Settle a channel before having called Register, which is reasonable IMHO.

ggwpez
ggwpez previously approved these changes May 4, 2021
@ggwpez ggwpez force-pushed the 58-subchannel-withdrawal branch from ce401fc to 1e817ee Compare May 4, 2021 19:53
The current implementation required a sub-channel to be registered on-chain before it could be withdrawn.
However, in the optimistic case, a sub-channel should be withdrawable into its parent channel without
blockchain interaction. We achieve this by modifying the state machine to allow for a transition from
phase final to phase withdrawing.

Signed-off-by: Matthias Geihs <matthias@perun.network>
@ggwpez ggwpez force-pushed the 58-subchannel-withdrawal branch from 1e817ee to 0ca21aa Compare May 4, 2021 19:55
@ggwpez ggwpez merged commit 9d62419 into hyperledger-labs:dev May 4, 2021
@ggwpez ggwpez deleted the 58-subchannel-withdrawal branch May 4, 2021 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sub-channel settlement requires channel registration on ajdudicator
2 participants