mod+multi: bump neutrino to v0.16.2 and btcwallet to 70a94ea#10629
mod+multi: bump neutrino to v0.16.2 and btcwallet to 70a94ea#10629
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on upgrading core chain backend dependencies, specifically Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly updates the neutrino and btcwallet dependencies, addressing the change in the Start method signature across the codebase by passing context.Background(). The changes are consistent and well-contained. My review identified a couple of minor opportunities to improve documentation by adding comments to exported functions, in line with the repository's style guide.
Note: Security Review is unavailable for this PR.
dd9fbe6 to
0601b84
Compare
In this commit, we update our two core chain backend dependencies: neutrino is bumped from v0.16.1 to v0.16.2, and btcwallet is updated to commit 70a94ea39e9c (a pre-release past v0.16.17). The updated btcwallet changes the `chain.Interface` `Start` method signature from `Start() error` to `Start(context.Context) error`. The same change was made to neutrino's `ChainService.Start`. We update all call sites and interface implementations across the codebase to pass a `context.Background()` at non-test call sites, and `t.Context()` in tests. The affected packages are: chainntnfs/bitcoindnotify, chainreg, config_builder, lnmock, lntest/unittest, lnwallet/btcwallet, lnwallet/test, and routing/chainview.
In this commit, we bump the grpc dependency from the v1.73.0 version (pulled in transitively by btcwallet) to v1.79.1 which is the latest release and includes several bug fixes. This also bumps a number of related transitive deps including google.golang.org/protobuf to v1.36.10 and several golang.org/x packages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
In this commit, we regenerate all protobuf Go stubs to match the updated grpc and protobuf library versions. This is a mechanical change with no functional differences; the generated code simply uses the newer protobuf runtime APIs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
In this commit, we update the CI workflow's pinned dependency check for google.golang.org/grpc from v1.59.0 to v1.79.1 to match the version now required by our updated btcwallet dependency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0601b84 to
3239af8
Compare
yyforyongyu
left a comment
There was a problem hiding this comment.
Straightforward - only got one Q.
| } | ||
|
|
||
| if err := neutrinoCS.Start(); err != nil { | ||
| if err := neutrinoCS.Start(context.Background()); err != nil { |
There was a problem hiding this comment.
Q: why context.Background() here? initNeutrinoBackend already takes a ctx that's threaded through to kvdb.Open above. Neutrino's Start passes it to importer.Import(ctx) for header imports, so using context.Background() means it can't be cancelled on shutdown.
Think this should be:
if err := neutrinoCS.Start(ctx); err != nil {
ziggie1984
left a comment
There was a problem hiding this comment.
LGTM (pending yy's comment)
We previoulsy decided to remove the co-authored tag by claude to make sure the creator of the PR takes full responsibilty and attests that he did review the code before submitting.
Moreover I think you need to update the repo rules for the CI pinned dep. job.
| @@ -548,7 +548,7 @@ jobs: | |||
| fail-fast: false | |||
There was a problem hiding this comment.
Nit commit msg comment is misleading we upgraded the grpc library to the latest stable release, the btcwallet only requires 1.73
| matrix: | ||
| pinned_dep: | ||
| - google.golang.org/grpc v1.59.0 | ||
| - google.golang.org/grpc v1.79.1 |
There was a problem hiding this comment.
I think you still need to update the repo-rules for the grpc check, because iirc just updating the CI file is not all we must have configured it somewhere else as well.
In this PR, we bump two of our core chain backend dependencies: neutrino
from v0.16.1 to v0.16.2, and btcwallet to commit
70a94ea39e9c(apre-release past v0.16.17). The btcwallet update changes the
chain.InterfaceStartmethod signature fromStart() errortoStart(context.Context) error, and the same change was made toneutrino's
ChainService.Start. We update all call sites and interfaceimplementations across the codebase to match.
The affected packages are:
chainntnfs/bitcoindnotify,chainreg,config_builder,lnmock,lntest/unittest,lnwallet/btcwallet,lnwallet/test, androuting/chainview. For now we passcontext.Background()at non-test call sites; test code usest.Context()per the linter's preference.
We also bump
google.golang.org/grpcfrom v1.59.0 to v1.79.1 (the latestrelease, which includes several bug fixes). The new btcwallet already
requires grpc v1.73.0 at minimum, so we go the rest of the way to the
latest. All protobuf Go stubs are regenerated accordingly, and the CI's
pinned dependency check is updated to match.
See each commit message for a detailed description w.r.t the incremental
changes.