-
Notifications
You must be signed in to change notification settings - Fork 4
refactor: go version #43
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
Conversation
Co-authored-by: Felix Lange <fjl@twurst.com>
Replace manual byte-by-byte XOR implementation with the optimized bitutil.XORBytes function. This improves performance by using word-sized operations on supported architectures while maintaining the same functionality. The optimized version processes data in bulk rather than one byte at a time --------- Co-authored-by: Felix Lange <fjl@twurst.com>
|
For reference, go-ethereum's PR #28946 (Go 1.22 upgrade) includes some additional changes that could improve this PR:
Using |
|
Per golangci-lint#4273, v1.55.2 does not support Go 1.22. Upgrade to v1.56.0+ is required |
|
Updated the PR with the following changes:
|
|
Resolved. I applied the upgrade to v1.59.0 via cherry-pick from upstream. Link |
0xmhha
left a comment
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.
- change checksum :
build/checksums.txt -> need to update Go 1.21.6 → Go 1.22.x checksums
- README.md:237 -> need to change Go version 1.19 → "1.21 or later"
|
Use `github.com/decred/dcrd/dcrec/secp256k1/v4` directly rather than `github.com/btcsuite/btcd/btcec/v2` which is just a wrapper around the underlying decred library. Inspired by cosmos/cosmos-sdk#15018 `github.com/btcsuite/btcd/btcec/v2` has a very annoying breaking change when upgrading from `v2.3.3` to `v2.3.4`. The easiest way to workaround this is to just remove the wrapper. Would be very nice if you could backport this to the release branches. References: - btcsuite/btcd#2221 - cometbft/cometbft#4294 - cometbft/cometbft#3728 - zeta-chain/node#2934
|
Updated the PR with the following changes:
|
|
@colinkim |
|
Updated the PR with the following changes:
|
0xmhha
left a comment
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
Summary
This PR upgrades the Go toolchain version and updates related dependencies.
As part of the upgrade, additional CGO-based stress and concurrency tests
were added for
blstto ensure safety and correctness under parallel workloads.Changes
github.com/fjl/memsize/memsizeuidependencyblstTests
The following tests were executed to validate correctness and stability
after the Go version upgrade:
go test ./...)go test -race ./...)blststress and concurrency testsNotes
blsttests are intended to catch potential race conditionsor non-deterministic behavior introduced by CGO interactions or
Go runtime changes.
safety guarantees and test coverage.