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

Bitcoin: fail immediately if we lose connection to our backend #3675

Merged
merged 3 commits into from
May 1, 2020

Conversation

darosior
Copy link
Collaborator

@darosior darosior commented Apr 28, 2020

I think this fixes \ #3571, but I'd like to double check with @whitslack before auto closing the issue.

This comports two drive-by fixes in addition which I remarked while debugging #3571.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This in addition removes the init fixed timeout hack.

Changelog-fixed: We now *always* die if our Bitcoin backend failed unexpectedly.
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
They are already logged both in bcli, and in lightningd.
This just adds a lot of noise to the logs. We keep successed attempts
though for the tests.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
@cdecker cdecker added this to the Next Release milestone Apr 28, 2020
@cdecker
Copy link
Member

cdecker commented Apr 28, 2020

ACK 2c1f300

@darosior
Copy link
Collaborator Author

@cdecker I'm not sure about the "Next release" milestone ? Since the behaviour experienced in #3571 is concerning : without new blocks during 14 hours, he could have been cheated.
However we can assume bcli running OOM can be rare, but still..

@rustyrussell
Copy link
Contributor

In general, I think we should die if a static plugin dies.

WRT release, it's @niftynei's call here, as Release Captain for 0.8.2. IMHO, if we were doing another rc anyway, I'd put this in, but wouldn't do an rc4 for this alone.

darosior added a commit to darosior/plugins that referenced this pull request Apr 30, 2020
The exception might be excepted, and we would continue execution. This works better after ElementsProject/lightning#3675 which will immediately make lightningd die if we exit

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
cdecker pushed a commit to lightningd/plugins that referenced this pull request Apr 30, 2020
The exception might be excepted, and we would continue execution. This works better after ElementsProject/lightning#3675 which will immediately make lightningd die if we exit

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
@niftynei niftynei merged commit 3fc7773 into ElementsProject:master May 1, 2020
@darosior darosior deleted the reliable_bitcoin_backend branch May 1, 2020 09:00
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.

4 participants