14214 Commits

Author SHA1 Message Date
Roberto Bayardo
99ffcfa4fa
implement more accurate & predicable priority fee suggestion algorithm specific for chains like Optimism 2023-05-23 07:57:39 -07:00
protolambda
3fa9e81244
Merge pull request #91 from ethereum-optimism/diff-update
fork.yaml: update fork diff for v1.11.6
2023-05-03 21:06:48 +02:00
protolambda
f7e10eea58
fork.yaml: update diff for v1.11.6 2023-05-03 19:56:59 +02:00
Adrian Sutton
9cc072e922
Merge pull request #88 from ethereum-optimism/aj/update-geth-azimir
Update to upstream Azimir (1.11.6) release
2023-05-03 06:23:51 +10:00
protolambda
cb5e6ef85a
Merge pull request #89 from dapperscene6/dapper/update-regolith-time
Update goerli regolith hardfork time
2023-04-27 23:34:22 +02:00
dapperscene6
c01d9335dc
Update goerli regolith hardfork time 2023-04-27 13:40:47 -04:00
Adrian Sutton
55ac3dc739
Merge tag 'v1.11.6' into aj/update-geth-azimir
# Conflicts:
#	core/txpool/txpool.go
#	go.sum
#	miner/worker.go
#	params/config.go
2023-04-21 13:36:27 +10:00
Joshua Gutow
24ae687be3
Merge pull request #85 from ethereum-optimism/jg/l1_gas_overhead
miner: Account for L1 Info Deposit gas usage in the pending pool
2023-04-20 11:32:14 -07:00
Martin Holst Swende
ea9e62ca3d
params: go-ethereum v1.11.6 stable 2023-04-20 20:14:51 +02:00
Joshua Gutow
f856aea527 miner: Account for L1 Info Deposit gas usage in the pending pool 2023-04-20 11:14:09 -07:00
rjl493456442
99f81d2724
all: refactor trie API (#26995)
In this PR, all TryXXX(e.g. TryGet) APIs of trie are renamed to XXX(e.g. Get) with an error returned.

The original XXX(e.g. Get) APIs are renamed to MustXXX(e.g. MustGet) and does not return any error -- they print a log output. A future PR will change the behaviour to panic on errorrs.
2023-04-20 06:57:24 -04:00
s7v7nislands
ae93e0b484
metrics: use atomic type (#27121) 2023-04-20 03:36:54 -04:00
Alex Beregszaszi
3f7afc3f57
core/vm: order opcodes properly (#27113) 2023-04-20 02:52:00 -04:00
Joshua Gutow
753e01d1cb
Merge pull request #80 from ethereum-optimism/handle-local-only-tx-pool-err
eth: when forwarding txs, silence local tx pool errors
2023-04-19 09:39:11 -07:00
Adrian Sutton
f2df2b1981
cmd/geth: rename --vmodule to --log.vmodule (#27071)
renames `--vmodule` to `--log.vmodule`, and prints a warning if the old form is used.
2023-04-19 07:18:02 -04:00
Martin Holst Swende
2b0a34bea6
cmd/devp2p: make crawler-route53-updater less verbose (#27116)
Follow-up to #26697, makes the crawler less verbose on route53-based scenarios.

It also changes the loglevel from debug to info on Updates, which are typically the root, and can be interesting to see.
2023-04-19 06:46:56 -04:00
s7v7nislands
3768b00747
consensus/ethash: use atomic type (#27068) 2023-04-18 14:54:06 +02:00
joohhnnn
b1972627d9
p2p: access embedded fields of Server directly (#27078) 2023-04-18 11:57:08 +02:00
Delweng
5e4d726e2a
params: remove EIP150Hash from chainconfig (#27087)
The EIP150Hash was an idea where, after the fork, we hardcoded the forked hash as an extra defensive mechanism. It wasn't really used, since forks weren't contentious and for all the various testnets and private networks it's been a hassle to have around. 

This change removes that config field. 

---------

Signed-off-by: jsvisa <delweng@gmail.com>
2023-04-18 03:49:09 -04:00
Adrian Sutton
547f15be87
Merge pull request #86 from ethereum-optimism/aj/fix-lint
Fix lint errors
2023-04-18 10:41:28 +10:00
Adrian Sutton
69834b1343
Fix lint errors 2023-04-18 10:23:03 +10:00
Adrian Sutton
18dff230d1
Merge pull request #83 from dapperscene6/dapper/schedule-base-goerli-regolith
Schedule Regolith on Base Goerli at 1682614800
2023-04-18 09:28:55 +10:00
Anusha
cb66eba85a
core: fix comment to reflect function name (#27070) 2023-04-17 11:02:31 -04:00
Taeguk Kwon
bedf2856d1
signer/core: rename testdata files (#27063)
Sets a meaningful name on test-files
2023-04-17 10:36:47 -04:00
noel
8fe807c8f2
cmd/devp2p: fix erroneous log output in crawler (#27089)
cmd/devp2p: fix log of ignored recent nodes counter
2023-04-17 10:29:27 -04:00
Parithosh Jayanthi
5aa5295cf9
params: new sepolia bootnodes (#27099)
New sepolia bootnodes managed by EF devops
2023-04-17 04:15:25 -04:00
dapper
54b5903877
Schedule Regolith on Base Goerli at 1682614800 2023-04-13 19:00:22 -04:00
Joshua Gutow
1ab789f1a9
Merge pull request #82 from ethereum-optimism/jg/fix_release_script
Update ci-docker-tag-op-geth-release.sh
2023-04-10 16:06:23 -07:00
Joshua Gutow
ae21d08bb0
Update ci-docker-tag-op-geth-release.sh 2023-04-10 13:04:23 -07:00
protolambda
96a0140275
eth: when forwarding txs, silence local tx pool errors 2023-04-10 17:33:53 +02:00
Péter Szilágyi
4a9fa31450
Merge pull request #27051 from sandakersmann/master
build: upgrade -dlgo version to Go 1.20.3
2023-04-08 17:13:55 +03:00
Joshua Gutow
70fbe82df1
Merge pull request #79 from ethereum-optimism/jg/increase_ci_size_for_unit_test
ci: Use a large machine for geth unit tests
2023-04-07 09:48:16 -07:00
Joshua Gutow
13e8df0afb
Update config.yml 2023-04-07 08:03:33 -07:00
Joshua Gutow
1c311b272a
ci: Use a large machine for geth unit tests 2023-04-06 15:30:37 -07:00
protolambda
c669d0271d
Merge pull request #78 from ethereum-optimism/jg/tag_latest
ci: Tag latest build
2023-04-06 01:08:00 +02:00
rjl493456442
b946b7a13b
core, miner: drop transactions from the same sender when error occurs (#27038)
This PR unifies the error handling in miner. 

Whenever an error occur while applying a transaction, the transaction should be regarded as invalid and all following transactions from the same sender not executable because of the nonce restriction. The only exception is the `nonceTooLow` error which is handled separately.
2023-04-05 07:09:25 -04:00
Marius van der Wijden
230df98e4d
core/txpool: disallow future churn by remote txs (#26907)
Prior to this change, it was possible that transactions are erroneously deemed as 'future' although they are in fact 'pending', causing them to be dropped due to 'future' not being allowed to replace 'pending'. 

This change fixes that, by doing a more in-depth inspection of the queue.
2023-04-05 04:59:32 -04:00
Marius Kjærstad
9d37102134
build: upgrade -dlgo version to Go 1.20.3 2023-04-04 22:24:30 +02:00
Joshua Gutow
b52b31fabe ci: Tag latest build 2023-04-04 10:56:09 -07:00
s7v7nislands
2adce0b066
eth/tracers: use atomic type (#27031)
Use the new atomic types in package eth/tracers

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2023-04-04 12:34:52 -04:00
Exca-DK
b4dcd1a391
metrics: make gauge_float64 and counter_float64 lock free (#27025)
Makes the float-gauges lock-free

name                      old time/op  new time/op  delta
CounterFloat64Parallel-8  1.45µs ±10%  0.85µs ± 6%  -41.65%  (p=0.008 n=5+5)

---------

Co-authored-by: Exca-DK <dev@DESKTOP-RI45P4J.localdomain>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-04-04 09:53:44 -04:00
Martin Holst Swende
ab1a404b01
all: remove debug-field from vm config (#27048)
This PR removes the Debug field from vmconfig, making it so that if a tracer is set, debug=true is implied.

---------

Co-authored-by: 0xTylerHolmes <tyler@ethereum.org>
Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
2023-04-04 09:50:13 -04:00
Delweng
0b76eb3708
eth/tracers: report correct gasLimit in call tracers (#27029)
This includes a semantic change to the `callTracer` as well as `flatCallTracer`.
The value of field `gas` in the **first** call frame will change as follows:

- It previously contained gas available after initial deductions (i.e. tx costs)
- It will now contain the full tx gasLimit value

Signed-off-by: jsvisa <delweng@gmail.com>
2023-04-04 12:34:23 +02:00
Péter Szilágyi
d2cf49327f
consensus/misc, params: add EIP-4844 blobfee conversions (#27041)
* consensus/misc, params: add EIP-4844 blobfee conversions

* consensus/misc: pull in fakeExponential test cases

* consensus/misc: reuse bigints

* consensus/misc: nit renames, additional larger testcase

---------

Co-authored-by: Roberto Bayardo <bayardo@alum.mit.edu>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-04-04 11:25:28 +03:00
Péter Szilágyi
91faf2c559
consensus, core/typer: add 4844 excessDataGas to header, tie it to Cancun (#27046) 2023-04-04 10:02:50 +03:00
joohhnnn
9b1a82c600
core/vm: clarify comment (#27045) 2023-04-04 02:59:40 -04:00
s7v7nislands
db18293c32
eth/downloader: use atomic types (#27030)
* eth/downloader: use atomic type

* Update eth/downloader/downloader_test.go

Co-authored-by: Martin Holst Swende <martin@swende.se>

* Update eth/downloader/downloader_test.go

Co-authored-by: Martin Holst Swende <martin@swende.se>

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-04-03 22:48:10 +03:00
Martin Holst Swende
beda6c41ad
core/txpool: move some validation to outside of mutex (#27006)
Currently, most of transaction validation while holding the txpool mutex: one exception being an early-on signature check. 

This PR changes that, so that we do all non-stateful checks before we entering the mutex area. This means they can be performed in parallel, and to enable that, certain fields have been made atomic bools and uint64.
2023-04-03 07:16:57 -04:00
Martin Holst Swende
a25dd8064e
test/fuzzers: fuzz rlp handling of big.Int and uint256.Int (#26917)
test/fuzzers: fuzz rlp handling of big.Lnt and uint256.Int
2023-04-03 05:42:34 -04:00
rjl493456442
94457cce07
cmd, miner, signer: avoid panic if keystore is not available (#27039)
* cmd, miner, singer: avoid panic if keystore is not available

* cmd/geth: print warning instead of panic
2023-04-03 05:08:06 -04:00