forked from bnb-chain/bsc
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
goleveldb: downgrade the version for performance (bnb-chain#1675)
this PR: bnb-chain#936 upgraded the goleveldb indirectly, since it has dependency of prysm, which also depends on goleveldb indrectly. But the new version has some performance issue on Databse Close, see: syndtr/goleveldb#434 So we need to rollback to the previous verison
- Loading branch information
1 parent
3c5f54f
commit bc543ba
Showing
3 changed files
with
10 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2121,6 +2121,12 @@ func TestGolangBindings(t *testing.T) { | |
t.Fatalf("failed to replace cometbft dependency to bnb-chain source: %v\n%s", err, out) | ||
} | ||
|
||
replacer = exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/syndtr/[email protected]", "-replace", "github.com/syndtr/goleveldb=github.com/syndtr/[email protected]") | ||
replacer.Dir = pkg | ||
if out, err := replacer.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to replace cometbft dependency to bnb-chain source: %v\n%s", err, out) | ||
} | ||
|
||
tidier := exec.Command(gocmd, "mod", "tidy", "-compat=1.19") | ||
tidier.Dir = pkg | ||
if out, err := tidier.CombinedOutput(); err != nil { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters