Matthieu Vachon
7b77261b7c
Added back OnNewAccount which is Firehose concept so I left it out of the merge commit just before this one
2024-03-13 16:24:14 -04:00
Matthieu Vachon
f47d2fc315
Merge branch 'extended-tracer-struct' into firehose-fh3.0
...
# Conflicts:
# core/blockchain.go
# core/state/statedb.go
# eth/backend.go
# eth/tracers/live/printer.go
# go.mod
# go.sum
2024-03-13 16:23:13 -04:00
Sina Mahmoodi
0b5975fee3
fix merge conflict
2024-03-13 12:48:34 +01:00
Sina Mahmoodi
65bdbc175f
fix lint issue
2024-03-13 12:45:22 +01:00
Sina M
eff424cc30
eth/tracers: fix concurrency issue for JS-tracing a block ( #29238 )
...
This change fixes a concurrency-issue where JS-tracers were accessing the block-ctx GetHash function in a in parallel, which is not safe.
2024-03-13 07:40:02 +01:00
Sina Mahmoodi
73ca96b97e
resolve merge conflict
2024-03-12 17:55:17 +01:00
Sina Mahmoodi
eeb0a46429
rm canceler
2024-03-07 13:08:27 +01:00
Sina Mahmoodi
935ff70d6d
replace opcode with byte
2024-03-07 10:30:13 +01:00
Sina Mahmoodi
1d0101969a
rm OnKeccakPreimage
2024-03-06 17:08:00 +01:00
Sina Mahmoodi
73595f0911
rm embedding of noop tracer
2024-03-06 16:44:19 +01:00
Sina Mahmoodi
8b3cddabb5
rename tracer methods to On pattern
2024-03-06 16:34:18 +01:00
Sina Mahmoodi
37ce159500
rm OnStart and onEnd
2024-03-06 15:49:49 +01:00
Delweng
6e379b6fc7
eth/tracers: prestate tracer add blob fee ( #29168 )
...
* eth/tracers: prestate balance add blob fee
Signed-off-by: jsvisa <delweng@gmail.com>
* eth/tracers: prestate test support blob tx
Signed-off-by: jsvisa <delweng@gmail.com>
* eth/tracers: add prestate blob tx test
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
2024-03-06 14:36:12 +02:00
Undefinedor
a6d6e8ac41
rpc: remove deprecated method "Notifier.Closed" ( #29162 )
2024-03-05 14:44:23 +01:00
Andrei Silviu Dragnea
19607d1a10
eth/tracers: Fix prestateTracer pre nonce on contract creation ( #29099 )
...
The prestateTracer was reporting an inaccurate nonce for the contract being created in
post EIP-158 transactions. Correct nonce is 0, due to the issue nonce was being reported as 1.
2024-03-04 20:21:43 +01:00
Sina Mahmoodi
923c180058
rename Capture hooks to On
2024-02-29 17:18:43 +01:00
Sina Mahmoodi
f358e57490
rename scopeContext to opContext
2024-02-29 15:13:03 +01:00
Sina Mahmoodi
507c072b3b
rename GetLogger to Hooks
2024-02-28 19:41:58 +01:00
Sina Mahmoodi
a2829c6f49
rename LiveLogger to hooks
2024-02-28 19:38:04 +01:00
Sina Mahmoodi
7d8db9b503
move logger interface to core/tracing
2024-02-28 19:34:49 +01:00
Sina Mahmoodi
d65bad2f62
renaming GetLogger
2024-02-28 19:27:39 +01:00
Sina Mahmoodi
8cc747f439
moaar fixes
2024-02-28 19:20:17 +01:00
Sina Mahmoodi
a1877ab520
fixes, rm t8ntool tracewriter
2024-02-27 20:31:01 +01:00
Sina Mahmoodi
60c29ac5a2
fix goja scope object wrappers
2024-02-27 16:51:47 +01:00
Sina Mahmoodi
22234e9cc1
fix memory copy util func
2024-02-27 16:32:21 +01:00
Andrei Silviu Dragnea
5a0f468f8c
eth/tracers: Fix callTracer logs on onlyTopCall == true ( #29068 )
2024-02-27 10:29:12 +01:00
ArtificialPB
e47a7c22c4
internal/ethapi: use overriden baseFee for gasPrice ( #29051 )
...
eth_call and debug_traceCall allow users to override various block fields, among them base fee. However the overriden base fee was not considered for computing the effective gas price of that message, and instead base fee of the base block was used. This has been fixed in this commit.
2024-02-22 14:39:22 +01:00
Sina Mahmoodi
f434c8df56
Add canceler interface
2024-02-21 18:54:15 +01:00
Sina Mahmoodi
fc35780124
full struct-based tracing infra
2024-02-21 18:47:59 +01:00
Sina Mahmoodi
8997f51d49
Merge branch 'extended-tracer' into extended-tracer-struct
2024-02-16 19:09:10 +01:00
Sina Mahmoodi
490efc5f21
resolve merge conflict
2024-02-16 19:08:41 +01:00
Sina Mahmoodi
95741b1844
core: move genesis alloc types to core/types ( #29003 )
...
We want to use these types in public user-facing APIs, so they shouldn't be in core.
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-02-16 19:05:33 +01:00
Sina Mahmoodi
50095906e2
use struct for tracing events
2024-02-16 11:20:56 +01:00
Sina Mahmoodi
5f0a5437e6
refactor onBlockStart params, new skip method
2024-02-15 16:22:59 +01:00
Sina Mahmoodi
3ba6b92dfb
remove onBeaconBlockRoot events
2024-02-15 16:05:55 +01:00
Sina Mahmoodi
35291e6a8c
resolve merge conflict
2024-02-15 10:22:56 +01:00
Martin HS
8321fe2fda
tests: fix goroutine leak related to state snapshot generation ( #28974 )
...
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-02-14 17:02:56 +01:00
Sina Mahmoodi
0db7a19f33
minor fix
2024-02-14 16:54:51 +01:00
Sina Mahmoodi
674a38ed60
add config for tracers
2024-02-14 16:52:10 +01:00
Sina Mahmoodi
cf6a31514b
fix mdLogger
2024-02-09 11:19:56 +01:00
Sina Mahmoodi
03206befb9
fix blockchain -> logger circular import
2024-02-09 11:02:39 +01:00
Sina Mahmoodi
27f662d96c
fix merge conflict
2024-02-08 19:07:00 +01:00
Sina Mahmoodi
056f229260
indicate known block
2024-02-08 17:20:53 +01:00
Sina Mahmoodi
57cd0c30df
rm OnNewAccount
2024-02-08 16:30:14 +01:00
Sina Mahmoodi
2cc09548bb
rename
2024-02-06 17:33:18 +01:00
Sina Mahmoodi
95b50299a5
replace printer with noop live tracer
2024-02-06 17:31:33 +01:00
Sina Mahmoodi
f3c0a89b57
add OnBlockchainInit for chainConfig
2024-02-06 17:21:52 +01:00
Dimitris Apostolou
8fd43c8013
all: fix typos in comments ( #28881 )
2024-02-05 22:16:32 +01:00
Matthieu Vachon
a46903cf0c
Reduce amount of changes to Geth Live Tracer to keep Firehose backward compatibility
...
We removed the `precompile` check on `OnNewAccount` and moved it to the Firehose tracer directly. This way, we can remove our custom logic that toggle the check at the tracing code level and we can instead move the logic of backward compatibility back `FirehoseTracer`.
Refactored a bit also how precompiles are check. We moved the precompiles checker up to the block level now that `chainConfig` is available on `OnBlockStart` meaning we can extract the list of active precompiles. However, to make it work, we had to modify `OnGenesisBlock` to also receive `chainConfig` parameter, I've ask to add it to the geth codebase directly.
2024-02-05 12:01:21 -05:00
Matthieu Vachon
8767058368
Merge branch 'extended-tracer' into firehose-fh3.0
...
# Conflicts:
# cmd/evm/internal/t8ntool/execution.go
# consensus/beacon/consensus.go
# consensus/ethash/consensus.go
# consensus/misc/dao.go
# core/genesis.go
# core/state/statedb.go
# core/state/statedb_test.go
# core/state_transition.go
# core/txpool/blobpool/blobpool_test.go
# core/txpool/legacypool/legacypool2_test.go
# core/txpool/legacypool/legacypool_test.go
# core/vm/evm.go
# core/vm/interface.go
# tests/state_test_util.go
2024-02-02 15:08:47 -05:00