Skip to content
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

Webapp: Allow user to close/force-close channel #2074

Merged
merged 6 commits into from
Feb 20, 2024

Conversation

bonomat
Copy link
Contributor

@bonomat bonomat commented Feb 20, 2024

resolves #2061

Note: the error in the video is already fixed.

Untitled.mov

serializing a simple vec<string> is error prone. Also, the frontend was erroring because the field seed was not initialized. With the future builder we temporarily show a loading indicator while retrieving the seed.

Signed-off-by: Philipp Hoenisch <[email protected]>
casting null to a map errors, hence, we need to handle this case specifically.

Signed-off-by: Philipp Hoenisch <[email protected]>
Signed-off-by: Philipp Hoenisch <[email protected]>
Signed-off-by: Philipp Hoenisch <[email protected]>
@holzeis
Copy link
Contributor

holzeis commented Feb 20, 2024

Minor findings:

  • force closing should not be possible if the channel is not yet confirmed. (the associated contract needs to be confirmed (on-chain) before force-closing is possible)
  • force closing button should be removed after the channel is already in closing

@bonomat
Copy link
Contributor Author

bonomat commented Feb 20, 2024

  • force closing should not be possible if the channel is not yet confirmed. (the associated contract needs to be confirmed (on-chain) before force-closing is possible)

I believe it should work. There is no reason why this shouldn't work as it's basically a CPFP

  • force closing button should be removed after the channel is already in closing

That should work. The refresh of the webinterface is a bit slow because the backend doesn't sync so fast.

@bonomat bonomat added this pull request to the merge queue Feb 20, 2024
@bonomat bonomat removed this pull request from the merge queue due to a manual request Feb 20, 2024
Signed-off-by: Philipp Hoenisch <[email protected]>
@bonomat bonomat added this pull request to the merge queue Feb 20, 2024
Merged via the queue into get10101:main with commit ed0c7f3 Feb 20, 2024
20 checks passed
@bonomat bonomat deleted the feat/force-close-channel branch February 20, 2024 21:31
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.

Allow user to force close channel via webapp
2 participants