dependency: go version to 1.20 and some dependencies in go.mod #1939
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
upgrade some dependencies for quality enhancement.
It is mainly for go-libp2p upgrade, which has a potential OOM risk. go-libp2p was added by prysm indirectly, so upgrade prysm instead. It will also upgrade go-libp2p to v0.27.8 and it needs golang v1.20+ to compile, but prsym v4.0.8 can not be compiled with golang v1.21. So only upgrade to v1.20.
actually it is not an issue for BSC, since BSC only use it for test purpose, but upgrade also is ok.
And after golang v1.20, the usage of math/rand module has been changed, see: https://pkg.go.dev/math/rand
Rationale
Example
NA
Changes
NA