- Aug 25, 2021
-
-
Felix Lange authored
As per benchmark results below, these changes speed up encoding/decoding of consensus objects a bit. name old time/op new time/op delta EncodeRLP/legacy-header-8 384ns ± 1% 331ns ± 3% -13.83% (p=0.000 n=7+8) EncodeRLP/london-header-8 411ns ± 1% 359ns ± 2% -12.53% (p=0.000 n=8+8) EncodeRLP/receipt-for-storage-8 251ns ± 0% 239ns ± 0% -4.97% (p=0.000 n=8+8) EncodeRLP/receipt-full-8 319ns ± 0% 300ns ± 0% -5.89% (p=0.000 n=8+7) EncodeRLP/legacy-transaction-8 389ns ± 1% 387ns ± 1% ~ (p=0.099 n=8+8) EncodeRLP/access-transaction-8 607ns ± 0% 581ns ± 0% -4.26% (p=0.000 n=8+8) EncodeRLP/1559-transaction-8 627ns ± 0% 606ns ± 1% -3.44% (p=0.000 n=8+8) DecodeRLP/legacy-header-8 831ns ± 1% 813ns ± 1% -2.20% (p=0.000 n=8+8) DecodeRLP/london-header-8 824ns ± 0% 804ns ± 1% -2.44% (p=0.000 n=8+7) * rlp: pass length to byteArrayBytes This makes it possible to inline byteArrayBytes. For arrays, the length is known at encoder construction time, so the call to v.Len() can be avoided. * rlp: avoid IsNil for pointer encoding It's actually cheaper to use Elem first, because it performs less checks on the value. If the pointer was nil, the result of Elem is 'invalid'. * rlp: minor optimizations for slice/array encoding For empty slices/arrays, we can avoid storing a list header entry in the encoder buffer. Also avoid doing the tail check at encoding time because it is already known at encoder construction time.
-
Felix Lange authored
Generated by go1.17 fmt ./...
-
Guillaume Ballet authored
-
Felix Lange authored
-
Martin Holst Swende authored
-
Martin Holst Swende authored
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.
-
Felix Lange authored
-
Felix Lange authored
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.
-
Gary Rong authored
-
- Aug 24, 2021
-
-
ucwong authored
-
Gary Rong authored
-
Felix Lange authored
-
Ivan Bogatyy authored
-
Péter Szilágyi authored
This reverts commit c368f728.
-
Martin Holst Swende authored
* core: make txpool reject too sudden changes * core: add some metrics to txpool
-
baptiste-b-pegasys authored
-
Zachinquarantine authored
Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Martin Holst Swende authored
Co-authored-by:
Felix Lange <fjl@twurst.com> Co-authored-by:
Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
-
Guillaume Ballet authored
-
ligi authored
Before: 316M .git/modules/tests/ After: 171M .git/modules/tests/
-
Pedro Gomes authored
This fixes a rare crash which could occur when two different errors happened in the same bloombits.MatcherSession.
-
Marius van der Wijden authored
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>
-
chuwt authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Martin Holst Swende authored
* 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
-
- Aug 23, 2021
-
-
Zsolt Felföldi authored
* 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
-
ucwong authored
-
Felix Lange authored
-
Marius van der Wijden authored
-
- Aug 20, 2021
-
-
Péter Szilágyi authored
-
- Aug 18, 2021
-
-
chuwt authored
-
- Aug 17, 2021
-
-
陈佳 authored
Makes the RPC block return the POA sealer for clique blocks on the 'miner' field (was previously zeroes)
-
Zachinquarantine authored
Adds --nousb as a deprecated flag when someone runs the geth show-deprecated-flags command.
-
Zachinquarantine authored
Removes references to the short-lived Calaveras testnet
-
jwasinger authored
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.
-
Martin Holst Swende authored
* tests: update, enable legacy tests, remove vm tests * tests: minor fixes
-
- Aug 13, 2021
-
-
Péter Szilágyi authored
* accounts/external: handle 0 chainid as not-set for the Clef API * accounts/external: document SignTx Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Péter Szilágyi authored
eth: drop eth/65, the last non-reqid protocol version
-
Martin Holst Swende authored
* 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
-