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

Register payment channels after virtual fund objective is complete #1766

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

NiloCK
Copy link
Contributor

@NiloCK NiloCK commented Sep 20, 2023

Previously, the engine, via the voucher manager, was happy to create (oops) and receive (oh no!) vouchers for channels whose status was still in Proposed.

This PR moves channel registration with the voucher manager to be triggered only by the completion of a virtual fund objective. Premature attempts to create or receive a voucher will now error out of the voucher manager.

Closes #1721

Related: #1750. This PR adds still more coupling between VFO and payment channel app, but gives a decent escape hatch - replacing SideEffects.PaymentChannelToRegister with a more generic SideEffects.AppChannelEffects field.

@netlify
Copy link

netlify bot commented Sep 20, 2023

👷 Deploy Preview for nitrodocs processing.

Name Link
🔨 Latest commit 71c09a2
🔍 Latest deploy log https://app.netlify.com/sites/nitrodocs/deploys/650db9f8836119000809e7f0

@NiloCK NiloCK marked this pull request as draft September 20, 2023 16:01
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.

Nitro client allows vouchers to be created with an unopened channel
1 participant