Martin Holst Swende
84c51bc5ec
cmd/evm: add difficulty calculation to t8n tool ( #23353 )
...
This PR adds functionality to the evm t8n to calculate ethash difficulty. If the caller does not provide a currentDifficulty, but instead provides the parentTimestamp (well, semi-optional, will default to 0 if not given), and parentDifficulty, we can calculate it for him.
The caller can also provide a parentUncleHash. In most, but not all cases, the parent uncle hash also affects the formula. If no such hash is provided (or, if the empty all-zero hash is provided), it's assumed that there were no uncles.
3 years ago
Felix Lange
efee85378e
build, .travis.yml: upgrade to Go 1.17 ( #23464 )
3 years ago
Felix Lange
45f34430fd
build: upgrade to golangci-lint v1.42.0 ( #23461 )
...
The new linter version is built with go 1.17 and thus includes the go vet
check for mismatched +build and go:build lines.
Fortunately, no new warnings are reported with this update.
3 years ago
gary rong
83ad92c421
les: fix data races in tests ( #23457 )
3 years ago
ucwong
fe2f153b55
go.mod: update goleveldb ( #23417 )
3 years ago
gary rong
a5a5237178
core, light, tests, trie: add state metrics ( #23433 )
3 years ago
Felix Lange
a789dcc978
metrics: fix compilation for GOOS=js ( #23449 )
3 years ago
Ivan Bogatyy
b69f5ca7d4
cmd/utils: fix typo in variable name ( #23451 )
3 years ago
Péter Szilágyi
0db0b27754
Revert "Revert "eth: drop eth/65, the last non-reqid protocol version" ( #23426 )" ( #23456 )
...
This reverts commit c368f728c1
.
3 years ago
Martin Holst Swende
d705f5a554
core: make txpool reject too sudden changes ( #23095 )
...
* core: make txpool reject too sudden changes
* core: add some metrics to txpool
3 years ago
baptiste-b-pegasys
5cee33eb72
tests/fuzzers: fix go vet warning about ReadByte ( #23380 )
3 years ago
Zachinquarantine
85126c4eb9
node: add comment about --nousb being deprecated ( #23439 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
3 years ago
Martin Holst Swende
a0a4a153e9
core/types: add benchmarks for rlp encoding/decoding ( #23190 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
3 years ago
Guillaume Ballet
0b40977480
core/vm: fix typo in comment ( #23450 )
3 years ago
ligi
5c66bab3b8
tests/testdata: make submodule shallow ( #23412 )
...
Before:
316M .git/modules/tests/
After:
171M .git/modules/tests/
3 years ago
Pedro Gomes
8e0771c218
core/bloombits: avoid crash when storing errors of different type ( #23437 )
...
This fixes a rare crash which could occur when two different errors happened
in the same bloombits.MatcherSession.
3 years ago
Marius van der Wijden
8dbf261fd9
p2p, p2p/enode: fix data races ( #23434 )
...
In p2p/dial.go, conn.flags was accessed without using sync/atomic.
This race is fixed by removing the access.
In p2p/enode/iter_test.go, a similar race is resolved by writing the field atomically.
Co-authored-by: Felix Lange <fjl@twurst.com>
3 years ago
chuwt
79bb9300c1
trie, les: add missing calls to Ticker.Stop ( #23415 )
3 years ago
Péter Szilágyi
ea4bc2dbff
params: begin Geth v1.10.9 release cycle
3 years ago
Péter Szilágyi
26675454bf
params: release Geth v1.10.8
3 years ago
Martin Holst Swende
1d99573192
core/vm: faster code analysis ( #23381 )
...
* core/vm: more detailed benchmark for jumpdest analysis
* core/vm: make jd analysis benchmark alloc free
* core/vm: improve jumpdest analysis
* core/vm: improve worst-case
* core/vm: further improvements in analysis
* core/vm: improve jumpdest analysis >PUSH15
* core/vm: make jd analysis ref by value
* core/vm: fix misspell
* core/vm: improve set8 and set16 a bit
* core/vm: reduce amount of code
* core/vm: optimize byte copying
3 years ago
Felföldi Zsolt
f38abc55f1
eth/gasprice: feeHistory improvements ( #23422 )
...
* eth/gasprice: cache feeHistory results
* eth/gasprice: changed feeHistory block count limitation
* eth/gasprice: do not use embedded struct in blockFees
* eth/gasprice: fee processing logic cleanup
* eth/gasprice: purge feeHistory cache at chain reorgs
3 years ago
ucwong
dfeb2f7e80
go.mod: upgrade golang.org/x/sys for go1.17 support ( #23406 )
3 years ago
Felix Lange
bb1f7ebf20
signer/core/apitypes: remove dependency on internal/ethapi ( #23362 )
3 years ago
Marius van der Wijden
d02c605367
core: only check sendernoeoa in non fake mode ( #23424 )
3 years ago
Péter Szilágyi
c368f728c1
Revert "eth: drop eth/65, the last non-reqid protocol version" ( #23426 )
3 years ago
chuwt
5566e5d152
eth/downloader: fix typo in comment ( #23413 )
3 years ago
陈佳
57feabea66
eth, internal/ethapi: make RPC block miner field show block sealer correctly ( #23312 )
...
Makes the RPC block return the POA sealer for clique blocks on the 'miner' field (was previously zeroes)
3 years ago
Zachinquarantine
16ecdd5839
cmd/utils: add --nousb to the list of deprecated flags ( #23388 )
...
Adds --nousb as a deprecated flag when someone runs the geth show-deprecated-flags command.
3 years ago
Zachinquarantine
85b9bdd641
cmd, core: remove calaveras testnet ( #23366 )
...
Removes references to the short-lived Calaveras testnet
3 years ago
jwasinger
6902485767
cmd, metrics: add support for influxdb-v2 (cherry-picking from italoacasas' changes), leave existing support for v1 to maintain backwards-compatibility. ( #23194 )
...
This PR adds flag to enable InfluxDB v2 (--metrics.influxdbv2), flags for v2-specific features (--metrics.influxdb.token, --metrics.influxdb.bucket), also carries over addition of support for specifying organization (--metrics.influxdb.organization), but still retains backwards compatibility with InfluxDB v1.
3 years ago
Martin Holst Swende
fb4007bb22
tests: update, enable legacy tests, remove vm tests ( #23350 )
...
* tests: update, enable legacy tests, remove vm tests
* tests: minor fixes
3 years ago
Péter Szilágyi
0a68558e7e
accounts/external: handle 0 chainid as not-set for the Clef API ( #23394 )
...
* accounts/external: handle 0 chainid as not-set for the Clef API
* accounts/external: document SignTx
Co-authored-by: Felix Lange <fjl@twurst.com>
3 years ago
Péter Szilágyi
fd604becbb
Merge pull request #23120 from karalabe/drop-eth-65
...
eth: drop eth/65, the last non-reqid protocol version
3 years ago
Martin Holst Swende
5f98020a21
core/rawdb: implement sequential reads in freezer_table ( #23117 )
...
* core/rawdb: implement sequential reads in freezer_table
* core/rawdb, ethdb: add sequential reader to db interface
* core/rawdb: lint nitpicks
* core/rawdb: fix some nitpicks
* core/rawdb: fix flaw with deferred reads not being performed
* core/rawdb: better documentation
3 years ago
Péter Szilágyi
a580f7d6c5
params: begin v1.10.8 release cycle
3 years ago
Péter Szilágyi
12f0ff40b1
params: release Geth v1.10.7
3 years ago
Péter Szilágyi
971df49fe2
Merge pull request #23385 from karalabe/cht-1.10.7
...
params: update CHTs for the 1.10.7 release
3 years ago
Péter Szilágyi
f4ad493870
params: update CHTs for the 1.10.7 release
3 years ago
Péter Szilágyi
2a451f9eb3
Merge pull request #23384 from holiman/fix_gasfoo
...
internal/ethapi: add back missing check for maxfee < maxPriorityFee
3 years ago
Martin Holst Swende
278ec7176a
internal/ethapi: add back missing check for maxfee < maxPriorityFee
3 years ago
Péter Szilágyi
deff5056fb
Merge pull request #23374 from karalabe/fix-docker-tag
...
build: fix docker tag to include `v` prefix in version string
3 years ago
Péter Szilágyi
c27bd3481e
build: fix docker tag to include `v` prefix in version string
3 years ago
Péter Szilágyi
0fbc94eabc
Merge pull request #23373 from karalabe/docker-flip
...
travis: transition from docker auto builds to manual pushes
3 years ago
Péter Szilágyi
9097d0a325
travis: transition from docker auto builds to manual pushes
3 years ago
Péter Szilágyi
5d0ab07343
Merge pull request #23371 from karalabe/gofmt
...
core/state/snapshot: gofmt
3 years ago
Péter Szilágyi
9d6480c3cd
core/state/snapshot: gofmt
3 years ago
lightclient
a879c42bd3
internal/ethapi, accounts/abi/bind: cap highest gas limit by account balance for 1559 fee parameters ( #23309 )
...
* internal/ethapi/api: cap highest gas limit by account balance for 1559 fee parameters
* accounts/abi/bind: port gas limit cap for 1559 parameters to simulated backend
* accounts/abi/bind: add test for 1559 gas estimates for the simulated backend
* internal/ethapi/api: fix comment
* accounts/abi/bind/backends, internal/ethapi: unify naming style
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
3 years ago
lightclient
39fe7eca6b
internal/ethapi: return maxFeePerGas for gasPrice for EIP-1559 txs ( #23345 )
3 years ago
Tyler Chambers
66948316f7
core/state/snapshot: clarify comment about snapshot repair ( #23305 )
...
Co-authored-by: Tyler Chambers <me@tylerchambers.net>
Co-authored-by: Felix Lange <fjl@twurst.com>
3 years ago