14208 Commits

Author SHA1 Message Date
Matthew Slipper
183fc964f4 Don't escape dots 2023-03-04 17:51:49 -07:00
Matthew Slipper
de8c5df46a Remove op-geth tag prefix 2023-03-03 17:16:26 -07:00
Matthew Slipper
cde9c26c48
Fix L1 cost function (#61)
The gas price oracle calculates L1 data costs using an unsigned transaction. However, `op-geth` was calculating L1 data costs using a _signed_ transaction, which included an additional 68 unnecessary bytes (1088 gas) in the cost.

This PR removes those extra bytes as part of the Regolith hardfork.

Co-authored-by: protolambda <proto@protolambda.com>
2023-03-03 17:11:35 -07:00
Matthew Slipper
428dc6e252
Push builds to GCP (#62) 2023-03-03 17:09:02 -07:00
Adrian Sutton
b9bbfdf372
ethapi: Omit isSystemTx: "false" from JSON-RPC responses (#60) 2023-03-03 17:08:47 -07:00
Péter Szilágyi
27e59827d8 travi: remove strange leftover Go version 2023-03-03 12:26:04 +02:00
Péter Szilágyi
403cac71eb
README, go.mod, event, internal/version: bump min Go to 1.19 (#26803) 2023-03-03 12:24:09 +02:00
Péter Szilágyi
010189538e
core: fix a merge fault (#26802) 2023-03-03 12:11:39 +02:00
Péter Szilágyi
19f74fa3c0
core/rawdb, ethdb/pebble: disable pebble on openbsd (#26801) 2023-03-03 12:05:00 +02:00
Joshua Gutow
13e42b01a4
Merge pull request #59 from ethereum-optimism/aj/fix-docker-build
ci: Fix docker build
2023-03-02 13:48:05 -08:00
Adrian Sutton
f12173d705
ci: Fix docker build 2023-03-03 07:14:19 +10:00
Joshua Gutow
8c8557b333
Multi-arch docker build (#58) 2023-03-02 09:25:22 -07:00
Péter Szilágyi
cd31f2dee2
all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00
Adrian Sutton
c407b2a217 core: Schedule Regolith on Optimism Goerli at 1679079600 2023-03-02 09:23:22 +10:00
Peter (bitfly)
e1b98f49a5
ethclient: include withdrawals in ethclient block responses (#26778)
* include withdrawals in ethclient responses

* omit empty withdrawals array in json serialization
2023-02-28 15:40:24 +02:00
rjl493456442
2bb622ce40
ethdb/pebble: fix max memorytable size (#26776) 2023-02-28 15:34:12 +02:00
rjl493456442
98b0ea62b5
ethdb/pebble: fix range compaction (#26771)
* ethdb/pebble: fix range compaction

* ethdb/pebble: add comment
2023-02-28 15:32:51 +02:00
Dan Cline
2ea48f8a22
core: improve withdrawal index assignment in GenerateChain (#26756)
This fixes an issue where the withdrawal index was not calculated correctly
for multiple withdrawals in a single block.

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-02-28 11:46:32 +01:00
Chris Ziogas
2ad150d986
eth/tracers: add native flatCallTracer (aka parity style tracer) (#26377)
Adds support for a native call tracer with the Parity format, which outputs call frames
in a flat array. This tracer accepts the following options:

- `convertParityErrors: true` will convert error messages to match those of Parity
- `includePrecompiles: true` will report all calls to precompiles. The default
  matches Parity's behavior where CALL and STATICCALLs to precompiles are excluded

Incompatibilities with Parity include:

- Parity removes the result object in case of failure. This behavior is maintained
  with the exception of reverts. Revert output usually contains useful information,
  i.e. Solidity revert reason.
- The `gasUsed` field accounts for intrinsic gas (e.g. 21000 for simple transfers)
  and refunds unlike Parity
- Block rewards are not reported

Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2023-02-28 13:54:37 +03:30
Adrian Sutton
88e99a8481 core: Log a warning when optimism enabled but regolith not scheduled 2023-02-28 10:07:51 +10:00
Adrian Sutton
0705cf1b7d ethapi,core/types: Include the actual nonce used when returning deposit tx from the JSON RPC API
Adds the EffectiveNonce method to Transaction which returns the actual nonce used when executing the transaction (if known).
2023-02-28 09:02:09 +10:00
Roman Krasiuk
626cc88c07
Fix Regolith test name typo (#56) 2023-02-27 11:05:22 -07:00
Martin Holst Swende
c155c8e179
cmd/devp2p: faster crawling + less verbose dns updates (#26697)
This improves the speed of DHT crawling by using concurrent requests.
It also removes logging of individual DNS updates.
2023-02-27 11:36:26 +01:00
Adrian Sutton
7303e2be73 Reject system deposit transactions in Regolith 2023-02-24 09:35:37 +10:00
Adrian Sutton
7643709fe8 core: Report actual gas used for deposit transactions in Regolith 2023-02-24 09:20:01 +10:00
Adrian Sutton
bc0cca3223 feat(core/types,internal/ethapi): In regolith, record the actual nonce used for deposit transactions
The nonce is available as DepositNonce on the receipt and is used to calculate the correct ContractAddress.
2023-02-24 08:52:52 +10:00
Péter Szilágyi
ee530c0d5a
Merge pull request #26721 from holiman/nocover
ci: disable coverage reporting in appveyor and travis
2023-02-23 13:24:31 +02:00
Péter Szilágyi
b3ae073488
eth: use the last announced finalized block as the sync ancient limit (#26685) 2023-02-23 13:22:41 +02:00
Martin Holst Swende
09a9ccdbce
core/rawdb, node: use standalone flock dependency (#26633) 2023-02-23 09:11:50 +02:00
Adrian Sutton
2864f90ac0
Include 0 values for v,r,s and gasPrice on deposit transactions (#48)
When serializing deposit transactions for RPC responses, provide 0 values for v, r, s and gasPrice instead of null to improve compatibility with existing parsing code.
2023-02-22 20:48:53 -07:00
Adrian Sutton
5ff481f95c
feat: Add support for Regolith in chain configuration (#50) 2023-02-22 20:47:55 -07:00
Adrian Sutton
aea040245e Remove unused variable to fix linter 2023-02-23 08:17:51 +10:00
protolambda
2703b41ad6
forkdiff: update fork-diff to generate post-v1.11.2 rebase diff (#47) 2023-02-22 14:32:24 -07:00
protolambda
12d2112465
miner: optimism block building fix - no extra data
Ensure extra-data can be set in L1 mode, but do not include any
extra-data when building a L2 optimism chain.

Co-authored-by: Adrian Sutton <adrian@oplabs.co>
2023-02-22 09:49:45 -06:00
protolambda
e9f8da9ca4
params/config: rename optimism test config 2023-02-22 09:49:45 -06:00
Adrian Sutton
4866fed4e5
Remove underscores from test names 2023-02-22 09:49:45 -06:00
Adrian Sutton
07514fc780
Use table test and further improve coverage 2023-02-22 09:49:44 -06:00
Adrian Sutton
d25f374756
Fix comparisons and update tests to cover both 0 and nil values 2023-02-22 09:49:44 -06:00
Adrian Sutton
e277a13fbd
Make deposit tx parsing more flexible
Allow either nil or 0 values for v, r, s and GasPrice.
Add a test to ensure deposit tx json can be round-tripped.
2023-02-22 09:49:44 -06:00
Adrian Sutton
b4d324ce9b
fix: Require gas field when unmarshalling deposit tx JSON (#43) 2023-02-22 09:49:44 -06:00
inphi
7e39eb5c5b
optimism: Add --rollup.historicalrpctimeout flag
This flag lets one configure the initial timeout of RPC requests to the
historical RPC service.

Fixes ENG-3294
2023-02-22 09:49:44 -06:00
Matthew Slipper
3518fe99f6
ethapi/api: updates to optimism daisy chain post-testing 2023-02-22 09:49:44 -06:00
Mark Tyneway
459d1342bb
op-geth: more daisychain routing
Adds the following RPC endpoints to the daisychain usage:

- `eth_getBalance`
- `eth_getProof`
- `eth_getCode`
- `eth_getStorageAt`
- `eth_getTransactionCount`
2023-02-22 09:49:43 -06:00
protolambda
8ba567f82b
optimism: minor goerli fixes - banner, clique config, networkid (#36) 2023-02-22 09:49:43 -06:00
protolambda
e2e6188144
fork.yaml: document op-geth changes with forkdiff (#35)
* fork.yaml: document op-geth changes

* forkdiff gh-pages action

Co-authored-by: Matthew Slipper <me@matthewslipper.com>
2023-02-22 09:49:43 -06:00
protolambda
ffcd75be7d
optimism: user can set pending block gas limit (#24) 2023-02-22 09:49:43 -06:00
Joshua Gutow
ac785740c5
Change fallback error 2023-02-22 09:49:43 -06:00
Joshua Gutow
d475ef4015
Remove debug_traceCall historical test 2023-02-22 09:49:43 -06:00
Joshua Gutow
e3dbaab7a9
eth/tracers: make unit tests work with historical backend 2023-02-22 09:49:43 -06:00
Joshua Gutow
7b0b80f0e6
Disable daisy chain for debug_traceCall 2023-02-22 09:49:42 -06:00