Skip to content

Close channel on BITCOIN_FUNDING_PUBLISH_FAILED#487

Merged
pm47 merged 1 commit intomasterfrom
close-on-publish-fail
Mar 19, 2018
Merged

Close channel on BITCOIN_FUNDING_PUBLISH_FAILED#487
pm47 merged 1 commit intomasterfrom
close-on-publish-fail

Conversation

@pm47
Copy link
Member

@pm47 pm47 commented Mar 19, 2018

Implementation should guarantee that in case of a
BITCOIN_FUNDING_PUBLISH_FAILED event, the funding tx will never be
published (see commit method in trait EclairWallet).

With that in mind, there is no need for a ERR_FUNDING_PUBLISH_FAILED
state, instead we can just permanently close the channel. Note that the
user will receive an error "couldn't publish funding tx".

@pm47 pm47 requested a review from sstone March 19, 2018 10:27
Implementation should guarantee that in case of a
`BITCOIN_FUNDING_PUBLISH_FAILED` event, the funding tx will *never* be
published (see `commit` method in trait `EclairWallet`).

With that in mind, there is no need for a `ERR_FUNDING_PUBLISH_FAILED`
state, instead we can just permanently close the channel. Note that the
user will receive an error "couldn't publish funding tx".
@pm47 pm47 force-pushed the close-on-publish-fail branch from d40ad88 to 2519603 Compare March 19, 2018 10:47
@pm47 pm47 merged commit ea9c005 into master Mar 19, 2018
@pm47 pm47 deleted the close-on-publish-fail branch March 19, 2018 11:59
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.

2 participants