Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Martin Holst Swende
4d3525610e
all: remove deprecated uses of math.rand ( #26710 )
...
This PR is a (superior) alternative to https://github.com/ethereum/go-ethereum/pull/26708 , it handles deprecation, primarily two specific cases.
`rand.Seed` is typically used in two ways
- `rand.Seed(time.Now().UnixNano())` -- we seed it, just to be sure to get some random, and not always get the same thing on every run. This is not needed, with global seeding, so those are just removed.
- `rand.Seed(1)` this is typically done to ensure we have a stable test. If we rely on this, we need to fix up the tests to use a deterministic prng-source. A few occurrences like this has been replaced with a proper custom source.
`rand.Read` has been replaced by `crypto/rand`.`Read` in this PR.
2 years ago
..
catalyst
beacon/engine: move core/beacon to beacon/engine ( #26616 )
2 years ago
checkpointoracle
all: update license headers and AUTHORS from git history ( #24947 )
3 years ago
downloader
common/prque: generic priority queue ( #26290 )
2 years ago
fetcher
common/prque: generic priority queue ( #26290 )
2 years ago
flowcontrol
common/prque: generic priority queue ( #26290 )
2 years ago
utils
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
vflux
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
api.go
all: fix docstrings
2 years ago
api_backend.go
eth/filters: avoid block body retrieval when no matching logs ( #25199 )
2 years ago
api_test.go
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
benchmark.go
all: remove deprecated uses of math.rand ( #26710 )
2 years ago
bloombits.go
les: handler separation ( #19639 )
5 years ago
client.go
cmd, core, eth, els, params: disallow setheads below genesis, tweaks
2 years ago
client_handler.go
all: implement forkid changes for shanghai
2 years ago
commons.go
all: remove support for Ropsten ( #26644 )
2 years ago
costtracker.go
eth: move eth.Config to a common package ( #22205 )
4 years ago
distributor.go
all: use AbsTime.Add instead of conversion ( #25417 )
2 years ago
distributor_test.go
les: separate peer into clientPeer and serverPeer ( #19991 )
5 years ago
enr_entry.go
cmd/devp2p: skip ENR field tails properly in nodeset filter ( #22565 )
4 years ago
fetcher.go
les/fetcher : fix requestTimer leak ( #26514 )
2 years ago
fetcher_test.go
all: fix spelling mistakes ( #25961 )
2 years ago
handler_test.go
all: refactor txpool into it's own package in prep for 4844
2 years ago
metrics.go
les: polish code ( #22625 )
4 years ago
odr.go
all: refactor txpool into it's own package in prep for 4844
2 years ago
odr_requests.go
all: fix docstrings
2 years ago
odr_test.go
all: refactor txpool into it's own package in prep for 4844
2 years ago
peer.go
all: more linters ( #24783 )
2 years ago
peer_test.go
all: implement forkid changes for shanghai
2 years ago
protocol.go
all: fix docstrings
2 years ago
pruner.go
all: update license headers and AUTHORS from git history ( #24947 )
3 years ago
pruner_test.go
all: update license headers and AUTHORS from git history ( #24947 )
3 years ago
request_test.go
cmd, core, eth, les, light: track deleted nodes ( #25757 )
2 years ago
retrieve.go
les: generate random nums directly, not via strange conversions
4 years ago
server.go
all: refactor txpool into it's own package in prep for 4844
2 years ago
server_handler.go
eth, les: polish forkid a bit, fix races and transition validation
2 years ago
server_requests.go
all: refactor txpool into it's own package in prep for 4844
2 years ago
servingqueue.go
common/prque: generic priority queue ( #26290 )
2 years ago
state_accessor.go
all: implement EIP-1153 transient storage ( #26003 )
2 years ago
sync.go
les: duplicate downloader and fetcher to allow progressive refactoring
3 years ago
sync_test.go
les: fix data races in tests ( #23457 )
3 years ago
test_helper.go
all: implement forkid changes for shanghai
2 years ago
txrelay.go
les: generate random nums directly, not via strange conversions
4 years ago
ulc.go
cmd, eth, les: fix up ultra light config integration
5 years ago
ulc_test.go
all: more linters ( #24783 )
2 years ago