Commit graph

14752 commits

Author SHA1 Message Date
Matthieu Vachon
d0fd1bd7f3 Fixed missing instrumentation for txTrace which was making a test fail 2024-02-22 20:03:08 -05:00
Matthieu Vachon
39b25c9163 Merge remote-tracking branch 'sei/master' into extended-tracer-sei
# Conflicts:
#	core/vm/contracts.go
#	core/vm/evm.go
2024-02-22 17:03:04 -05:00
Jeremy Wei
a4f97f7b3d Make block headers and txs public 2024-02-22 08:57:14 -05:00
codchen
dfcdccd122
Merge pull request #16 from sei-protocol/precompile-value
pass value to precompile calls
2024-02-22 15:32:32 +08:00
codchen
6f9b23cefe pass value to precompile calls 2024-02-22 15:30:53 +08:00
Matthieu Vachon
04d3f64a96 Merge branch 'extended-tracer-backport-1.13.5' into extended-tracer-sei
# Conflicts:
#	cmd/geth/config.go
2024-02-09 16:52:02 -05:00
Sina Mahmoodi
2264a9c3fe fix mdLogger
Backport of cf6a31514b
2024-02-09 16:08:43 -05:00
Sina Mahmoodi
ee96dd2c03 live tracer err -> warn
Backport of 08cb623c2e
2024-02-09 16:08:28 -05:00
Sina Mahmoodi
97e9a8b315 fix blockchain -> logger circular import
Backport of 03206befb9
2024-02-09 16:07:56 -05:00
Matthieu Vachon
bd651ce4d9 Merge remote-tracking branch 'sei/master' into extended-tracer-sei 2024-02-08 16:07:25 -05:00
Matthieu Vachon
c5ebc52461 Merge branch 'extended-tracer-backport-1.13.5' into extended-tracer-sei-v1.13.5 2024-02-08 16:05:19 -05:00
Matthieu Vachon
7ff2ae6924 indicate Known block
Backport of 056f229260
2024-02-08 16:04:15 -05:00
Matthieu Vachon
31b3b7dca3 rm OnNewAccount
Backport of 57cd0c30df
2024-02-08 15:57:12 -05:00
Matthieu Vachon
5456ce5015 Merge branch 'extended-tracer-backport-1.13.5' into extended-tracer-sei-v1.13.5
# Conflicts:
#	core/state/statedb.go
2024-02-06 15:40:27 -05:00
Matthieu Vachon
9f71824d8c Backported commits from extended-tracer
- 6c44a594f4
- 188cd4182e
- f3c0a89b57
- 95b50299a5
- 2cc09548bb
2024-02-06 15:36:12 -05:00
Matthieu Vachon
301839fbfe Merge branch 'extended-tracer-backport-1.13.5' into release/sei-1.x-fh3.0
# Conflicts:
#	accounts/abi/bind/backends/simulated.go
#	cmd/geth/config.go
#	consensus/beacon/consensus.go
#	consensus/ethash/consensus.go
#	core/state_processor.go
#	core/vm/contracts.go
#	core/vm/contracts_test.go
#	core/vm/evm.go
#	eth/tracers/api.go
#	eth/tracers/js/goja.go
#	lib/ethapi/api.go
#	light/odr_test.go
2024-02-06 15:18:47 -05:00
Matthieu Vachon
7f8926e716 Backporting extended-tracer branch
We backported branch `extended-tracer` at commit 3078dfe80b back to v1.13.5 of Geth.

To achieve the backport, we did:
- git checkout -b extended-tracer-squashed
- git reset --hard 3078dfe80b
- git reset --mixed fc380f52ef # This was the latest merged commit not from `extended-tracer` branch
- git commit -A -m "<This message>"
- git checkout v1.13.5
- git checkout -b extended-tracer-backport-v1.13.5
- git cherry-pick extended-tracer-squashed
2024-02-06 13:06:08 -05:00
codchen
c25df4e701
Merge pull request #14 from sei-protocol/disable-daemons
disable tx cache sender
2024-02-06 11:59:20 +08:00
codchen
63786021ad disable tx cache sender 2024-02-06 11:58:40 +08:00
codchen
c047698e66
Merge pull request #13 from sei-protocol/evm-set-evm
Set EVM in StateDB in gasestimator
2024-01-30 13:43:13 +08:00
codchen
39ab532d6e Set EVM in StateDB in gasestimator 2024-01-30 13:42:33 +08:00
codchen
b6b7630a24
Merge pull request #12 from sei-protocol/pass-orig-caller
pass orig caller to precompile
2024-01-18 11:35:01 +08:00
codchen
47856d75b3 pass orig caller to precompile 2024-01-18 11:34:18 +08:00
codchen
1786fcac44
Merge pull request #11 from sei-protocol/pass-delegatecall-flag
Pass IsDelegateCall to precompile calls
2024-01-18 11:25:11 +08:00
codchen
5d14fa58be Pass IsDelegateCall to precompile calls 2024-01-18 11:24:44 +08:00
codchen
db336b3fcb
Merge pull request #10 from sei-protocol/fix-delegate-precompile
Send correct sender to precompile in delegatecall
2024-01-08 11:35:21 +08:00
codchen
b19992f4b3 Send correct sender to precompile in delegatecall 2024-01-08 11:29:52 +08:00
codchen
6ff4c5e1d8
Merge pull request #9 from sei-protocol/precompile-gas
add precompile interface with dynamically-calculated gas
2024-01-04 16:04:38 +08:00
codchen
10ddd7304d add precompile interface with dynamically-calculated gas 2024-01-04 16:04:01 +08:00
codchen
7654bc2cb9 resolve conflicts 2023-12-12 14:32:36 +08:00
codchen
9ecc4274eb make setDefaults public 2023-12-12 10:58:59 +08:00
codchen
43497a4c38 Pass sender to precompile Run() 2023-12-12 10:58:59 +08:00
codchen
8f0c453217 make internal public 2023-12-12 10:58:57 +08:00
codchen
42d0052297 fix import 2023-12-12 10:52:36 +08:00
codchen
d04ef5cf81 Use interface as Copy() result 2023-12-12 10:52:35 +08:00
codchen
16a8208f36 use interface instead of concrete state type 2023-12-12 10:52:02 +08:00
codchen
ff86dbf72a Pass EVM pointer when running precompile 2023-12-12 10:46:41 +08:00
rjl493456442
e206d3f897
trie: remove inconsistent trie nodes during sync in path mode (#28595)
This fixes a database corruption issue that could occur during state healing.
When sync is aborted while certain modifications were already committed, and a
reorg occurs, the database would contain incorrect trie nodes stored by path.
These nodes need to detected/deleted in order to obtain a complete and fully correct state
after state healing.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2023-12-08 14:28:23 +01:00
Péter Szilágyi
d98d70f670
cmd/utils, eth: disallow invalid snap sync / snapshot flag combos (#28657)
* eth: prevent startup in snap mode without snapshots

* cmd/utils: try to fix bad flag combos wrt snap sync and snapshot generation
2023-12-08 15:16:04 +02:00
Felföldi Zsolt
fff843cfaf
beacon/light: add CommitteeChain (#27766)
This change implements CommitteeChain which is a key component of the beacon light client. It is a passive data structure that can validate, hold and update a chain of beacon light sync committees and updates, starting from a checkpoint that proves the starting committee through a beacon block hash, header and corresponding state. Once synced to the current sync period, CommitteeChain can also validate signed beacon headers.
2023-12-08 13:38:00 +01:00
Martin HS
1048e2d6a3
cmd/evm: fix dump after state-test exec (#28650)
The dump after state-test didn't work, the problem was an error, "Already committed", which was silently ignored. 

This change re-initialises the state, so the dumping works again.
2023-12-08 11:06:01 +01:00
Martin HS
5a45e7a631
rpc: fix ns/µs mismatch in metrics (#28649)
The rpc/duration/all meter was in nanoseconds, the individual meter in microseconds.
This PR changes it so both of them use nanoseconds.
2023-12-08 09:40:50 +01:00
Marius Kjærstad
77c4bbcaa5
build: upgrade -dlgo version to Go 1.21.5 (#28648) 2023-12-07 12:45:09 +02:00
Guillaume Ballet
a113497dd7
tests/fuzzers/bls12381: deactivate BLS fuzzer when CGO_ENABLED=0 (#28653)
tests/fuzzers/bls12381: deactivate fuzzer when CGO_ENABLED=0
2023-12-07 10:07:20 +01:00
Marius van der Wijden
55b483d82a
ethdb/pebble: remove a dependency (#28627)
The dependency was not really used anyway, so we can get rid of it.

Co-authored-by: Felix Lange <fjl@twurst.com>
2023-12-06 11:41:04 +01:00
Guillaume Ballet
69576df254
.github: use github actions to run 32-bit linux tests (#28549)
use github actions to run 32-bit linux tests
2023-12-05 14:45:40 +01:00
Martin Holst Swende
b8d44ed98b
log: remove lazy, remove unused interfaces, unexport methods (#28622)
This change 

- Removes interface `log.Format`, 
- Removes method `log.FormatFunc`, 
- unexports `TerminalHandler.TerminalFormat` formatting methods (renamed to `TerminalHandler.format`)
- removes the notion of `log.Lazy` values


The lazy handler was useful in the old log package, since it
could defer the evaluation of costly attributes until later in the
log pipeline: thus, if the logging was done at 'Trace', we could
skip evaluation if logging only was set to 'Info'.

With the move to slog, this way of deferring evaluation is no longer
needed, since slog introduced 'Enabled': the caller can thus do
the evaluate-or-not decision at the callsite, which is much more
straight-forward than dealing with lazy reflect-based evaluation.

Also, lazy evaluation would not work with 'native' slog, as in, these
two statements would be evaluated differently:

```golang
  log.Info("foo", "my lazy", lazyObj)
  slog.Info("foo", "my lazy", lazyObj)
```
2023-12-05 11:54:44 +01:00
Martin Holst Swende
3dc071e036
eth/tracers/logger: make structlog/json-log stack hex again (#28628)
* common/hexutil: define hex wrappers for uint256.Int

* eth/tracers/logger: make structlog/json-log stack hex again

* common/hexutil: goimports
2023-12-05 09:37:48 +01:00
Håvard Anda Estensen
2e13b01046
accounts: run tests in parallel (#28544) 2023-12-04 14:55:06 +01:00
Manav Darji
70fd0b635e
eth/fetcher: fix invalid tracking of received at time for block (#28637)
eth/fetcher: fix invalid tracking of received at time
2023-12-04 14:25:17 +02:00