-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: charge fee when opening a jit channel #864
Conversation
e9597d5
to
8fd312f
Compare
8fd312f
to
15d299b
Compare
c50b05d
to
0855cdc
Compare
It looks like we don't always broadcast the funding transaction when opening a channel. That results into a failed attempt to fetch the funding transaction from esplora.
|
0855cdc
to
58ef2d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I've left a bunch of primarily stylistic comments.
This allows us to move app or coordinator specific code out of the crate and handle it in the layer where it should be. This also allows us to step wise refactor the event handler.
This resulted in the invoice having additional quotes, that would have required additional handling.
2ede2c6
to
9637cf7
Compare
It appears broadcasting the funding transaction fails every once in a while as the output transaction has already been spent. This leads to the following bug #873. Once fixed it should not be required to mine blocks to make that test pass all the time.
Contrary to a local run the CI is skipping the direct route to payee for unkown reasons. That's why we are relaxing the balance assertion to cater for the fees being substracted or not. This should be changed once #883 is fixed.
9637cf7
to
c7944d5
Compare
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
fixes #577
TODOs that will be covered in follow up tickets.