mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
eth/tracers/logger: also fix md logger
This commit is contained in:
parent
b7abe47ac8
commit
4074c077f4
1 changed files with 9 additions and 5 deletions
|
|
@ -410,17 +410,21 @@ func NewMarkdownLogger(cfg *Config, writer io.Writer) *mdLogger {
|
||||||
|
|
||||||
func (t *mdLogger) Hooks() *tracing.Hooks {
|
func (t *mdLogger) Hooks() *tracing.Hooks {
|
||||||
return &tracing.Hooks{
|
return &tracing.Hooks{
|
||||||
OnTxStart: t.OnTxStart,
|
OnTxStart: t.OnTxStart,
|
||||||
OnEnter: t.OnEnter,
|
OnSystemCallStartV2: t.OnTxStart,
|
||||||
OnExit: t.OnExit,
|
OnEnter: t.OnEnter,
|
||||||
OnOpcode: t.OnOpcode,
|
OnExit: t.OnExit,
|
||||||
OnFault: t.OnFault,
|
OnOpcode: t.OnOpcode,
|
||||||
|
OnFault: t.OnFault,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *mdLogger) OnTxStart(env *tracing.VMContext, tx *types.Transaction, from common.Address) {
|
func (t *mdLogger) OnTxStart(env *tracing.VMContext, tx *types.Transaction, from common.Address) {
|
||||||
t.env = env
|
t.env = env
|
||||||
}
|
}
|
||||||
|
func (t *mdLogger) OnSystemCallStart(env *tracing.VMContext) {
|
||||||
|
t.env = env
|
||||||
|
}
|
||||||
|
|
||||||
func (t *mdLogger) OnEnter(depth int, typ byte, from common.Address, to common.Address, input []byte, gas uint64, value *big.Int) {
|
func (t *mdLogger) OnEnter(depth int, typ byte, from common.Address, to common.Address, input []byte, gas uint64, value *big.Int) {
|
||||||
if depth != 0 {
|
if depth != 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue