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

core-lightning: restart bitcoind when we're restarted. #52

Closed
wants to merge 5 commits into from

Conversation

rustyrussell
Copy link
Owner

@rustyrussell rustyrussell commented May 23, 2022

Nobody else seems to, which explains some of our issues?

No, still failing. Let me add a crapton of logging, since it only fails on GH!

Fixes #31

@rustyrussell rustyrussell marked this pull request as draft May 23, 2022 05:17
This restores previous behavior (we had bugs, so we just changed
to restarting it every time).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
I found a similar race in our core-lightning CI: when a node restarts,
there's a race where another node could start on the same port.

In this case, we catch the exception, which was covering up the failure.
The test then talks to the wrong bitcoind, which has unpredictable results.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@vincenzopalazzo vincenzopalazzo marked this pull request as ready for review May 23, 2022 07:25
@vincenzopalazzo vincenzopalazzo self-assigned this May 23, 2022
@vincenzopalazzo vincenzopalazzo added the bitcoin core Bitcoin Core related label May 23, 2022
@vincenzopalazzo
Copy link
Collaborator

The only regression that we have with this PR is the execution time of the test, In particular:

I will check this in local and see what is going on!

@rustyrussell
Copy link
Owner Author

See final fixup commit! If we don't rewrite the bitcoin.conf when we change port, it all breaks...

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
@vincenzopalazzo
Copy link
Collaborator

Closing in favor of #53 that includes a patch of this patch.

In addition, the CI now run @niftynei cln patch ElementsProject/lightning#5367 so we start to monitoring other CI failure, but at the moment this problem looks fixed

@vincenzopalazzo vincenzopalazzo deleted the bitcoind-restart branch July 3, 2022 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bitcoin core Bitcoin Core related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky test ran on lightningd
2 participants