Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supply live tracer #21

Closed
wants to merge 188 commits into from
Closed
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
b20caf4
rename constant in comment
ziogaschr Jan 9, 2024
ecbd7fd
add BalanceChangeReason.String() for logging on development
ziogaschr Jan 9, 2024
cae888d
add supply live tracer (draft)
ziogaschr Jan 9, 2024
2e344c8
simplify output
ziogaschr Jan 12, 2024
ee962ac
TODO comment
ziogaschr Jan 16, 2024
7da415f
Add test for supply live tracer
ziogaschr Jan 16, 2024
21dbbf6
Merge branch 'extended-tracer' into extended-tracer-chris
ziogaschr Jan 17, 2024
67adbdc
/s/BalanceChangeWithdrawal/BalanceIncreaseWithdrawal/
ziogaschr Jan 17, 2024
86d0f68
fix Supply does not implement core.BlockchainLogger
ziogaschr Jan 17, 2024
d6d45e5
Refactor supply live tracer tests
ziogaschr Jan 17, 2024
1ba6b06
add test for selfdestruct
ziogaschr Jan 19, 2024
ac2c13d
add supply tracer test where selfdestruct passes funds to itself
ziogaschr Jan 19, 2024
42f6d8b
Count burned amount for selfdestructing contracts
ziogaschr Jan 30, 2024
694c51d
remove obsolete test
ziogaschr Jan 30, 2024
f78f7f7
s/funds/eth1
ziogaschr Feb 1, 2024
a31b05c
remove TODO comment
ziogaschr Feb 1, 2024
50ee919
stop handling BalanceChangeReason.BalanceIncreaseGenesisBalance
ziogaschr Feb 1, 2024
ecca9df
provide contracts code for TestSupplySelfdestructItselfAndRevert
ziogaschr Feb 1, 2024
fcf0042
add “—vmtrace.output.path” for setting the output path for traces
ziogaschr Feb 2, 2024
20cb1eb
fix misspell
ziogaschr Feb 2, 2024
77c987d
remove debug logs
ziogaschr Feb 2, 2024
fcc09ed
Merge branch 'extended-tracer' into extended-tracer-chris
ziogaschr Feb 9, 2024
4608acb
fix live package import issues
ziogaschr Feb 12, 2024
810801c
Revert "add “—vmtrace.output.path” for setting the output path for tr…
ziogaschr Feb 15, 2024
77fec21
Merge branch 'extended-tracer' into extended-tracer-chris
ziogaschr Feb 15, 2024
27bc391
parse lumberjack settings from `—vmtrace.config`
ziogaschr Feb 15, 2024
4dff9da
remove unneeded hasGenesisProcessed
ziogaschr Feb 15, 2024
5009590
use struct for tracing events
s1na Feb 16, 2024
8997f51
Merge branch 'extended-tracer' into extended-tracer-struct
s1na Feb 16, 2024
593e303
core/txpool, eth, miner: pre-filter dynamic fees during pending tx re…
karalabe Feb 17, 2024
034bc46
ethstats: prevent panic if head block is not available (#29020)
rjl493456442 Feb 19, 2024
5d98479
core: using math.MaxUint64 instead of 0xffffffffffffffff (#29022)
cuiweixie Feb 19, 2024
6fb0d09
core/txpool, miner: speed up blob pool pending retrievals (#29008)
karalabe Feb 19, 2024
ac0ff04
core/vm, params: ensure order of forks, prevent overflow (#29023)
holiman Feb 19, 2024
f4852b8
core/txpool, eth, miner: retrieve plain and blob txs separately (#29026)
karalabe Feb 20, 2024
7f5e96d
core/txpool: fix typo (#29031)
buddh0 Feb 20, 2024
bba3fa9
core,eth,internal: fix typo (#29024)
buddh0 Feb 20, 2024
79e340f
params: add cancun upgrade banner (#29042)
tmelhao Feb 21, 2024
b9ca38b
core/txpool: fix typo (#29036)
colinlyguo Feb 21, 2024
b47cf8f
internal/ethapi: fix defaults for blob fields (#29037)
s1na Feb 21, 2024
3b4ede7
params: release go-ethereum v1.13.13 stable
fjl Feb 21, 2024
b590cae
params: begin v1.13.14 release cycle
fjl Feb 21, 2024
fc35780
full struct-based tracing infra
s1na Feb 21, 2024
f434c8d
Add canceler interface
s1na Feb 21, 2024
e47a7c2
internal/ethapi: use overriden baseFee for gasPrice (#29051)
ArtificialPB Feb 22, 2024
b87b9b4
internal/ethapi:fix zero rpc gas cap in eth_createAccessList (#28846)
colinlyguo Feb 22, 2024
93c541a
eth/catalyst: fix wrong error message of payloadV2 after cancun (#29049)
tmelhao Feb 23, 2024
32d4d6e
core/txpool: reject blob txs with blob fee cap below the minimum (#29…
roberto-bayardo Feb 26, 2024
26724fc
p2p, log, rpc: use errors.New to replace fmt.Errorf with no parameter…
0x2d3c Feb 26, 2024
edffacc
eth/catalyst: enable some commented-out testcases   (#29073)
cuiweixie Feb 26, 2024
8bca93e
internal/ethapi: pass blob hashes to gas estimation (#29085)
mask-pp Feb 26, 2024
821d702
cmd/clef: add spaces in README.md table (#29077)
justindhillon Feb 26, 2024
c1f59b9
eth/catalyst: remove variable in tx conversion loop (#29076)
cuiweixie Feb 26, 2024
63aaac8
core/txpool/blobpool: reduce default database cap for rollout (#29090)
karalabe Feb 26, 2024
45a272c
core/txpool: no need to log loud rotate if no local txs (#29083)
jsvisa Feb 26, 2024
5a0f468
eth/tracers: Fix callTracer logs on onlyTopCall == true (#29068)
andreisilviudragnea Feb 27, 2024
51b479e
core/txpool: elevate the 'already reserved' error into a constant (#2…
roberto-bayardo Feb 27, 2024
9038ba6
params: release Geth v1.13.14
karalabe Feb 27, 2024
57d2b55
params: begin v1.13.15 cycle
karalabe Feb 27, 2024
22234e9
fix memory copy util func
s1na Feb 27, 2024
60c29ac
fix goja scope object wrappers
s1na Feb 27, 2024
a1877ab
fixes, rm t8ntool tracewriter
s1na Feb 27, 2024
02d77c9
core: using math.MaxUint64 instead of 0xffffffffffffffff (#29094)
cuiweixie Feb 28, 2024
170fcd8
params: being major version bump cycle
karalabe Feb 28, 2024
49623bd
core, triedb/pathdb: calculate the size for batch pre-allocation (#29…
rjl493456442 Feb 28, 2024
5bae14f
triedb/pathdb: fix panic in recoverable (#29107)
rjl493456442 Feb 28, 2024
9986a69
internal/ethapi: pass in accesslist in test (#29089)
buddh0 Feb 28, 2024
8cc747f
moaar fixes
s1na Feb 28, 2024
d65bad2
renaming GetLogger
s1na Feb 28, 2024
7d8db9b
move logger interface to core/tracing
s1na Feb 28, 2024
a2829c6
rename LiveLogger to hooks
s1na Feb 28, 2024
507c072
rename GetLogger to Hooks
s1na Feb 28, 2024
1883438
eth/catalyst: return invalid payload attributes instead of invalid pa…
lightclient Feb 28, 2024
dbc27a1
all: fix function names in docs (#29128)
cuishuang Feb 29, 2024
28d5521
cmd/geth: parseDumpConfig should not return closed db (#29100)
weiihann Feb 29, 2024
db4cf69
all: replace fmt.Errorf() with errors.New() if no param required (#29…
Feb 29, 2024
865e1e9
cmd/utils, core/rawdb, triedb/pathdb: flip hash to path scheme (#29108)
karalabe Feb 29, 2024
0a2f339
eth/catalyst: update simulated beacon for cancun (#28829)
s1na Feb 29, 2024
f358e57
rename scopeContext to opContext
s1na Feb 29, 2024
021d6a4
assign const values for gas change reasons
s1na Feb 29, 2024
ad7b9e8
a type for each hook
s1na Feb 29, 2024
d10d4b7
rm old logger file
s1na Feb 29, 2024
923c180
rename Capture hooks to On
s1na Feb 29, 2024
0b1438c
eth: make transaction propagation paths in the network deterministic …
karalabe Mar 2, 2024
00905f7
all: remove redundant import aliases (#29144)
undefinedor Mar 2, 2024
a732ad0
p2p: remove unused argument 'flags' (#29132)
yasyzb Mar 4, 2024
b408b3e
accounts/abi: delete duplicate error check (#29136)
yasyzb Mar 4, 2024
5a1e8a6
core: delete unused ErrMaxInitCodeSizeExceeded (#29062)
cuiweixie Mar 4, 2024
679a27a
all: use EmptyUncleHash, EmptyCodeHash instead of raw value (#29134)
buddh0 Mar 4, 2024
35cebc1
triedb/pathdb: changed the test code to check for verifying state (#2…
psogv0308 Mar 4, 2024
a97d622
cmd/devp2p: fix commandHasFlag (#29091)
fjl Mar 4, 2024
ca473b8
core: use finalized block as the chain freeze indicator (#28683)
rjl493456442 Mar 4, 2024
19607d1
eth/tracers: Fix prestateTracer pre nonce on contract creation (#29099)
andreisilviudragnea Mar 4, 2024
5d5b384
.mailmap: remove invalid email address (#29163)
reductionista Mar 4, 2024
9b3ceb2
core/types: reuse signtx (#29152)
vieyang Mar 5, 2024
d89d7eb
core: initialize `gasRemaining` with `=` instead of `+=` (#29149)
zhiqiangxu Mar 5, 2024
e199319
rlp: remove a moot todo (#29154)
buddh0 Mar 5, 2024
7b81cf6
core/state, trie/triedb/pathdb: remove storage incomplete flag (#28940)
rjl493456442 Mar 5, 2024
96bf23f
accounts/usbwallet: use updated hid (only) library (#28945)
holiman Mar 5, 2024
dfa6c5e
internal/jsre: format blob fields from hexdecimal to int (#29166)
jsvisa Mar 5, 2024
a6d6e8a
rpc: remove deprecated method "Notifier.Closed" (#29162)
undefinedor Mar 5, 2024
a970295
rlp: using unsafe.Slice instead of SliceHeader (#29067)
cuiweixie Mar 5, 2024
9e129ef
core: remove useless assignments (#29065)
zhiqiangxu Mar 5, 2024
9a0fa80
node: remove test which doesn't do a lot (#29159)
MariusVanDerWijden Mar 5, 2024
f4d5313
consensus, cmd, core, eth: remove support for non-merge mode of opera…
karalabe Mar 5, 2024
66e1a6e
go.mod: bump pebble db to official release (#29038)
itsdevbear Mar 5, 2024
588c548
internal/ethapi: delete needless error check (#29127)
tomdever Mar 6, 2024
899bb88
accounts/usbwallet: revert #28945 (#29175)
holiman Mar 6, 2024
a000acb
rpc: add more test cases for arg types (#29006)
AyumuKasuga Mar 6, 2024
e73f553
accounts/usbwallet: update hid library (#29176)
holiman Mar 6, 2024
a90fe84
accounts: remove deprecated function NewPlaintextKeyStore (#29171)
undefinedor Mar 6, 2024
6e379b6
eth/tracers: prestate tracer add blob fee (#29168)
jsvisa Mar 6, 2024
d8e0807
miner: refactor the miner, make the pending block on demand (#28623)
MariusVanDerWijden Mar 6, 2024
37ce159
rm OnStart and onEnd
s1na Mar 6, 2024
8b3cdda
rename tracer methods to On pattern
s1na Mar 6, 2024
73595f0
rm embedding of noop tracer
s1na Mar 6, 2024
1d01019
rm OnKeccakPreimage
s1na Mar 6, 2024
aadcb88
cmd/blsync, beacon/light: beacon chain light client (#28822)
zsfelfoldi Mar 6, 2024
1d2af89
fix eth config
s1na Mar 6, 2024
935ff70
replace opcode with byte
s1na Mar 7, 2024
5bdbf07
add fn refundGas
s1na Mar 7, 2024
eeb0a46
rm canceler
s1na Mar 7, 2024
3bebabb
accounts: remove redundant string conversion (#29184)
cuinix Mar 7, 2024
cd49060
all: fix typos in comments (#29186)
hyhnet Mar 7, 2024
c41105c
log: add Handler getter to Logger interface (#28793)
sebastianst Mar 7, 2024
d35c8f0
ethclient/gethclient: add blob transaction fields in toCallArg (#29198)
colinlyguo Mar 8, 2024
e31709d
console: fix the wrong error msg of datadir testcase (#29183)
tmelhao Mar 8, 2024
3dc549b
p2p/simulations/adapters: fix error messages in TestTCPPipeBidirectio…
keroro520 Mar 10, 2024
b393ad8
cmd, core, metrics: always report expensive metrics (#29191)
karalabe Mar 11, 2024
00c2112
core/txpool/blobpool: return ErrAlreadyKnown for duplicate txs (#29210)
PlasmaPower Mar 11, 2024
fa4ade8
core: fix deprecation comment for GenesisAccount (#29218)
s1na Mar 11, 2024
ebf9e11
beacon/light/request: fix typos (#29216)
testwill Mar 11, 2024
4e1116f
crypto/bn256/cloudflare: fix noescape-directive (#29222)
kumakichi Mar 12, 2024
89cefe2
cmd: use package filepath over path for file system operations (#29227)
songzhibin97 Mar 12, 2024
99bbbc0
internal/build, rpc: add missing HTTP response body Close() calls (#2…
wzshiming Mar 12, 2024
4bd55a0
common/math: copy result in Exp (#29233)
AaronChen0 Mar 12, 2024
6c76b81
miner: add additional log (#29193)
MariusVanDerWijden Mar 12, 2024
73ca96b
resolve merge conflict
s1na Mar 12, 2024
758fce7
p2p: fix race in dialScheduler (#29235)
fjl Mar 12, 2024
eff424c
eth/tracers: fix concurrency issue for JS-tracing a block (#29238)
s1na Mar 13, 2024
d5bacfa
crypto/kz4844: pass blobs by ref (#29050)
holiman Mar 13, 2024
b80643b
accounts/usbwallet, common/bitutil: fix broken links in docs (#29078)
justindhillon Mar 13, 2024
c170fa2
core: improve chain rewinding mechanism (#29196)
rjl493456442 Mar 13, 2024
65bdbc1
fix lint issue
s1na Mar 13, 2024
0b5975f
fix merge conflict
s1na Mar 13, 2024
b71dc65
fix merge conflict
s1na Mar 13, 2024
eb3f145
update supply tracer to new interface
s1na Mar 13, 2024
153f04a
rm captureEnd
s1na Mar 13, 2024
2612c60
add blob burnt fee
s1na Mar 13, 2024
188458e
minor
s1na Mar 13, 2024
cff9fba
rm extra param
s1na Mar 13, 2024
f3d18d6
tests, appveyor: only execute one in four permutations on CI (#29220)
holiman Mar 13, 2024
57308be
go.mod: update golang.org/x/crypto from v0.17.0 to v0.21.0 (#29228)
songzhibin97 Mar 13, 2024
3c26ffe
eth/catalyst: remove error return in delayPayloadImport (#29043)
tmelhao Mar 13, 2024
20d3e0a
cmd/devp2p: fix decoding of raw RLP ENR attributes (#29257)
weiihann Mar 14, 2024
817e261
Call `OnBlockchainInit` before `OnGenesisBlock` (#22)
maoueh Mar 14, 2024
17f95b9
fix empty tracer config
s1na Mar 14, 2024
d28adb6
cmd/emv/internal/t8ntool: fix shadowing of `excessBlobGas` (#29263)
dyxushuai Mar 14, 2024
543d27c
simplify eip1559 test
s1na Mar 14, 2024
cffb7c8
params: use the same variable name as EIP-4788 (#29195)
tmelhao Mar 15, 2024
95715fd
eth/downloader, graphql: fix typos (#29243)
shivhg Mar 15, 2024
40cac1d
eth/catalyst: prettier output on bad new payloads (#29259)
holiman Mar 15, 2024
ba2dd93
accounts/abi/bind: remove unused err set and check (#29269)
kumakichi Mar 15, 2024
0124d16
refactors
s1na Mar 15, 2024
c611924
go.mod: update protobuf (#29270)
holiman Mar 18, 2024
4636dd3
cmd/evm: fix tracing
holiman Mar 18, 2024
25051c9
cmd/evm: add testcase for js-tracer
holiman Mar 18, 2024
e320d1e
core/vm: documentation + minor refactoring
holiman Mar 18, 2024
4f87f17
eth/tracers, cmd/evm: unexport JSONlogger
holiman Mar 18, 2024
ab49f22
all: update to go version 1.22.1 (#28946)
holiman Mar 18, 2024
15eb977
triedb/pathdb: improve tests (#29278)
rjl493456442 Mar 19, 2024
ac6060a
log: replace tmp with bytes.Buffer.AvailableBuffer (#29287)
AaronChen0 Mar 19, 2024
6b3d4d0
beacon/light/sync: fix typo in comment (#29256)
AtomicInnovation321 Mar 19, 2024
eda9c7e
accounts/abi/bind: check invalid chainID first (#29275)
htiennv Mar 19, 2024
4c1b578
miner: modify header before checking time-based fields (#29242)
buddh0 Mar 19, 2024
d21e92c
refactor args to msg and tx
s1na Mar 19, 2024
6f929a0
core/asm: minor code-clarification (#29293)
zgfzgf Mar 20, 2024
45b88ab
all: fix typos (#29288)
miles-six Mar 20, 2024
0ceac8d
metrics: fix docstrings (#29279)
georgehao Mar 20, 2024
de08f3d
cmd/evm: make staterunner always output stateroot to stderr (#29290)
holiman Mar 20, 2024
9a7e6ce
cmd/evm: fix flag-mismatch from #29290 (#29298)
holiman Mar 20, 2024
22ac46c
Makefile: update PHONY directive (#29296)
imalasong Mar 20, 2024
78c102d
core: skip the check the statefulness of head block in repair (#29245)
rjl493456442 Mar 20, 2024
0444388
core/txpool/blobpool: calculate log1.125 faster (#29300)
AaronChen0 Mar 20, 2024
8f7fbdf
core: refactor consensus interface (#29283)
MariusVanDerWijden Mar 20, 2024
04bf1c8
eth/protocols/snap, internal/testlog: fix dataraces (#29301)
holiman Mar 20, 2024
3f18501
fix merge conflict
s1na Mar 20, 2024
7a859d8
Merge branch 'extended-tracer-struct' into extended-tracer-chris
s1na Mar 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion cmd/geth/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,15 @@ func makeFullNode(ctx *cli.Context) (*node.Node, ethapi.Backend) {

if ctx.IsSet(utils.VMTraceFlag.Name) {
if name := ctx.String(utils.VMTraceFlag.Name); name != "" {
t, err := directory.LiveDirectory.New(name)
liveTracerCtx := directory.LiveTracerContext{}

if ctx.IsSet(utils.VMTracePathFlag.Name) {
if path := ctx.String(utils.VMTracePathFlag.Name); path != "" {
liveTracerCtx.OutputPath = path
}
}

t, err := directory.LiveDirectory.New(name, &liveTracerCtx)
if err != nil {
utils.Fatalf("Failed to create tracer %q: %v", name, err)
}
Expand Down
16 changes: 15 additions & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,12 @@ var (
Usage: "Name of tracer which should record internal VM operations (costly)",
Category: flags.VMCategory,
}
VMTracePathFlag = &flags.DirectoryFlag{
Name: "vmtrace.output.path",
Usage: "Directory to store VM traces in",
Value: flags.DirectoryString("."),
Category: flags.VMCategory,
}

// API options.
RPCGlobalGasCapFlag = &cli.Uint64Flag{
Expand Down Expand Up @@ -2128,7 +2134,15 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readonly bool) (*core.BlockCh
vmcfg := vm.Config{EnablePreimageRecording: ctx.Bool(VMEnableDebugFlag.Name)}
if ctx.IsSet(VMTraceFlag.Name) {
if name := ctx.String(VMTraceFlag.Name); name != "" {
t, err := directory.LiveDirectory.New(name)
liveTracerCtx := directory.LiveTracerContext{}

if ctx.IsSet(VMTracePathFlag.Name) {
if path := ctx.String(VMTracePathFlag.Name); path != "" {
liveTracerCtx.OutputPath = path
}
}

t, err := directory.LiveDirectory.New(name, &liveTracerCtx)
if err != nil {
Fatalf("Failed to create tracer %q: %v", name, err)
}
Expand Down
41 changes: 40 additions & 1 deletion core/state/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const (
// BalanceDecreaseDaoAccount is ether taken from a DAO account to be moved to the refund contract.
BalanceDecreaseDaoAccount BalanceChangeReason = 9

// BalanceChangeTransfer is ether transfered via a call.
// BalanceChangeTransfer is ether transferred via a call.
// it is a decrease for the sender and an increase for the recipient.
BalanceChangeTransfer BalanceChangeReason = 10
// BalanceChangeTouchAccount is a transfer of zero value. It is only there to
Expand All @@ -64,3 +64,42 @@ const (
// Note it doesn't account for a self-destruct which appoints itself as recipient.
BalanceDecreaseSelfdestructBurn BalanceChangeReason = 14
)

// TODO: to be removed, it's useful for logs while developing
// String returns a string representation of the reason.
func (r BalanceChangeReason) String() string {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like this would be a good addition to the core code directly, it's probably worth it.

switch r {
case BalanceChangeUnspecified:
return "BalanceChangeUnspecified"
case BalanceIncreaseRewardMineUncle:
return "BalanceIncreaseRewardMineUncle"
case BalanceIncreaseRewardMineBlock:
return "BalanceIncreaseRewardMineBlock"
case BalanceIncreaseWithdrawal:
return "BalanceIncreaseWithdrawal"
case BalanceIncreaseGenesisBalance:
return "BalanceIncreaseGenesisBalance"
case BalanceIncreaseRewardTransactionFee:
return "BalanceIncreaseRewardTransactionFee"
case BalanceDecreaseGasBuy:
return "BalanceDecreaseGasBuy"
case BalanceIncreaseGasReturn:
return "BalanceIncreaseGasReturn"
case BalanceIncreaseDaoContract:
return "BalanceIncreaseDaoContract"
case BalanceDecreaseDaoAccount:
return "BalanceDecreaseDaoAccount"
case BalanceChangeTransfer:
return "BalanceChangeTransfer"
case BalanceChangeTouchAccount:
return "BalanceChangeTouchAccount"
case BalanceIncreaseSelfdestruct:
return "BalanceIncreaseSelfdestruct"
case BalanceDecreaseSelfdestruct:
return "BalanceDecreaseSelfdestruct"
case BalanceDecreaseSelfdestructBurn:
return "BalanceDecreaseSelfdestructBurn"
default:
return "unknown"
}
}
11 changes: 8 additions & 3 deletions eth/tracers/directory/live.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ import (
"github.com/ethereum/go-ethereum/core"
)

type ctorFunc func() (core.BlockchainLogger, error)
// Context contains some contextual infos to support the live tracers.
type LiveTracerContext struct {
OutputPath string
}

type ctorFunc func(ctx *LiveTracerContext) (core.BlockchainLogger, error)

// LiveDirectory is the collection of tracers which can be used
// during normal block import operations.
Expand All @@ -22,9 +27,9 @@ func (d *liveDirectory) Register(name string, f ctorFunc) {
}

// New instantiates a tracer by name.
func (d *liveDirectory) New(name string) (core.BlockchainLogger, error) {
func (d *liveDirectory) New(name string, ctx *LiveTracerContext) (core.BlockchainLogger, error) {
if f, ok := d.elems[name]; ok {
return f()
return f(ctx)
}
return nil, errors.New("not found")
}
Loading