Skip to content

Commit

Permalink
Supply delta live tracer (ethereum#29347)
Browse files Browse the repository at this point in the history
Introduces the first built-in live tracer. The supply tracer tracks ETH supply changes across blocks
and writes the output to disk. This will need to be enabled through CLI using the `--vmtrace supply` flag.

Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
  • Loading branch information
2 people authored and stwiname committed Sep 9, 2024
1 parent 47b0934 commit 812fe16
Show file tree
Hide file tree
Showing 6 changed files with 1,060 additions and 0 deletions.
37 changes: 37 additions & 0 deletions core/tracing/gen_balance_change_reason_stringer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions core/tracing/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ type Hooks struct {
// for tracing and reporting.
type BalanceChangeReason byte

//go:generate stringer -type=BalanceChangeReason -output gen_balance_change_reason_stringer.go

const (
BalanceChangeUnspecified BalanceChangeReason = 0

Expand Down
Loading

0 comments on commit 812fe16

Please sign in to comment.