-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Replace github.com/btcsuite/goleveldb imports with github.com/syndtr/goleveldb #1780
Conversation
Pull Request Test Coverage Report for Build 1953020277
💛 - Coveralls |
FWIW, the failing test seems to be flaky on current
|
Ah yeah this happens all the time. The test sometimes passes and sometimes doesn't. Could you Also, this PR looks good to me. |
dd70cef
to
267bb2e
Compare
9f17681
to
554ba24
Compare
I also think we should use the original version instead of the fork if possible. |
It was primarily added prior to modules because, back in those days, Go had many of the same problems as node.js in terms of packages being able to disappear and or get updated in an incompatible way which could either break Nowadays, with modules, the module mirror, and MVS, all of those issues are solved much more nicely, so I agree that it's better to use the upstream. That is, in fact, what we do in dcrd now. |
Yeah, I understand that concern, I probably would've done something similar. So you can confirm that no |
Yes, unless anything was introduced after I stopped working on btcsuite, which it doesn't look like it from the commit history, nothing unique was introduced in the fork, so changing to the upstream module shouldn't break anything and is what I would recommend as well. |
Can confirm that the unit tests run fine locally. The |
FWIW, I've been running an instance of btcd with this applied, and it was able to get fully synced up without crashes - this doesn't guarantee correctness or consistency, but I can verify it doesn't crash. |
Cool! Can you run |
554ba24
to
519fac2
Compare
Done. |
Actually, CI will not run automatically since this is my first btcd PR. Someone will need to approve this change before tests run. |
519fac2
to
87e3d7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK, LGTM 🎉
cc @Roasbeef. |
Correct, given that we have the option to do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🦖
I think that given the sub-module sum files were updated as a result, we'll also need to push new minor tags there?
With the recent PR lightningnetwork#6285 merged that bumped the btcd dependency, we no longer need to bump the github.com/onsi/ginkgo package with a replace directive. Instead it was bumped indirectly by merging btcsuite/btcd#1780 which is included in the btcd version we reference.
Generated using
Upstream goleveldb has 3+ years of bugfixes and improvements over the fork, which would be great to pull in.
I've been burned by a corruption which was fixed in syndtr/goleveldb@eb13543.
Related to #1770