go-ethereum/core/txpool/blobpool
Sina M 064f37d6f6
eth/tracers: live chain tracing with hooks (#29189)
Here we add a Go API for running tracing plugins within the main block import process. 

As an advanced user of geth, you can now create a Go file in eth/tracers/live/, and within
that file register your custom tracer implementation. Then recompile geth and select your tracer
on the command line. Hooks defined in the tracer will run whenever a block is processed.

The hook system is defined in package core/tracing. It uses a struct with callbacks, instead of 
requiring an interface, for several reasons:

- We plan to keep this API stable long-term. The core/tracing hook API does not depend on
  on deep geth internals.
- There are a lot of hooks, and tracers will only need some of them. Using a struct allows you
   to implement only the hooks you want to actually use.

All existing tracers in eth/tracers/native have been rewritten to use the new hook system.

This change breaks compatibility with the vm.EVMLogger interface that we used to have.
If you are a user of vm.EVMLogger, please migrate to core/tracing, and sorry for breaking
your stuff. But we just couldn't have both the old and new tracing APIs coexist in the EVM.

---------

Co-authored-by: Matthieu Vachon <matthieu.o.vachon@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
Co-authored-by: Martin HS <martin@swende.se>
2024-03-22 18:53:53 +01:00
..
blobpool_test.go eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
blobpool.go core/txpool/blobpool: return ErrAlreadyKnown for duplicate txs (#29210) 2024-03-11 12:05:17 +02:00
config.go core/txpool/blobpool: reduce default database cap for rollout (#29090) 2024-02-26 14:27:56 +02:00
evictheap_test.go core/txpool/blobpool: 4844 blob transaction pool (#26940) 2023-07-27 13:45:35 +03:00
evictheap.go core/txpool: fix typo (#29031) 2024-02-20 12:08:56 +02:00
interface.go core/txpool/blobpool: 4844 blob transaction pool (#26940) 2023-07-27 13:45:35 +03:00
limbo.go all: fix typos in comments (#28881) 2024-02-05 22:16:32 +01:00
metrics.go core/txpool/blobpool: post-crash cleanup and addition/removal metrics (#28914) 2024-02-02 18:26:35 +02:00
priority_test.go core/txpool: fix typo (#29031) 2024-02-20 12:08:56 +02:00
priority.go core/txpool/blobpool: calculate log1.125 faster (#29300) 2024-03-20 14:51:05 +01:00
slotter_test.go params: update 4844 parameters (#28026) 2023-09-05 04:49:51 -04:00
slotter.go core/txpool/blobpool: 4844 blob transaction pool (#26940) 2023-07-27 13:45:35 +03:00