go-ethereum/consensus/ethash
Felix Lange b628d72766
build: upgrade to go 1.19 (#25726)
This changes the CI / release builds to use the latest Go version. It also
upgrades golangci-lint to a newer version compatible with Go 1.19.

In Go 1.19, godoc has gained official support for links and lists. The
syntax for code blocks in doc comments has changed and now requires a
leading tab character. gofmt adapts comments to the new syntax
automatically, so there are a lot of comment re-formatting changes in this
PR. We need to apply the new format in order to pass the CI lint stage with
Go 1.19.

With the linter upgrade, I have decided to disable 'gosec' - it produces
too many false-positive warnings. The 'deadcode' and 'varcheck' linters
have also been removed because golangci-lint warns about them being
unmaintained. 'unused' provides similar coverage and we already have it
enabled, so we don't lose much with this change.
2022-09-10 13:25:40 +02:00
..
algorithm.go consensus/ethash: replace a magic number with it's constant (#22618) 2021-04-06 21:02:52 +03:00
algorithm_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
api.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
consensus.go cmd, params: implement Gray Glacier hard-fork (EIP-5133) (#25088) 2022-06-15 14:10:38 +03:00
consensus_test.go all: prefer `new(big.Int)` over `big.NewInt(0)` (#25087) 2022-06-14 15:09:48 +03:00
difficulty.go go.mod: upgrade to github.com/holiman/uint256 v1.2.0 (#22745) 2021-05-10 12:29:33 +02:00
ethash.go consensus/ethash: remove temp files created during DAG generation (#25381) 2022-08-02 14:33:23 +02:00
ethash_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
mmap_help_linux.go consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799) 2021-11-02 11:33:54 +01:00
mmap_help_other.go consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799) 2021-11-02 11:33:54 +01:00
sealer.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
sealer_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00