multi: update new walletdb version in main go.mod and kvdb go.mod#9684
Conversation
|
Important Review skippedAuto reviews are limited to specific labels. 🏷️ Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
The wallet loader also needs to be updated, which means we need btcsuite/btcwallet#998 first. |
8778dd0 to
314fbfb
Compare
|
|
||
| retract v0.0.2 | ||
|
|
||
| replace github.com/lightningnetwork/lnd/kvdb => ./kvdb |
There was a problem hiding this comment.
not sure if the linter will complain because of that.
There was a problem hiding this comment.
Think we need to upgrade the kvdb, tag it and update the version here?
There was a problem hiding this comment.
or merge this one, tag kvdb, and remove this entry ?
bhandras
left a comment
There was a problem hiding this comment.
LGTM (needs go mod tidy) ✅
|
|
||
| // ErrDbDoesNotExist is returned when a database instance is opened | ||
| // but it does not exist. | ||
| ErrDbDoesNotExist = walletdb.ErrDbDoesNotExist |
There was a problem hiding this comment.
so I can use only kvdb in the lndinit tool
yyforyongyu
left a comment
There was a problem hiding this comment.
LGTM🐠 The only question is the kvdb tag. As for the itest failure, it's actually a bug that we are investigating atm.
I looked into it, it seems not related to this new code change, but rather a race condition in the notifier logic, so I think we can merge this. |
Updated to the new walletdb/v1.5.0 with the option to open a bbolt db in readonly. This changes needs to be done thorougly because the error will only be seen at runtime. Tried my best to filter all the postions where we use it. But a second pair of eyes would be very good.
After this change: the kvdb package needs to be tagged, then it could be used in the lndinit tool.
lightninglabs/lndinit#21
EDIT:
Also bumped btcwallet version.