refactor: add more context to tracing failure (#466)

This commit is contained in:
Péter Garamvölgyi 2023-08-17 13:25:03 +08:00 committed by GitHub
parent 6195e2e77d
commit 3027111956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -158,7 +158,13 @@ func (env *TraceEnv) GetBlockTrace(block *types.Block) (*types.BlockTrace, error
case errCh <- err:
default:
}
log.Error("failed to trace tx", "txHash", txs[task.index].Hash().String())
log.Error(
"failed to trace tx",
"txHash", txs[task.index].Hash().String(),
"blockHash", block.Hash().String(),
"blockNumber", block.NumberU64(),
"err", err,
)
}
}
}()

View file

@ -24,7 +24,7 @@ import (
const (
VersionMajor = 4 // Major version component of the current release
VersionMinor = 3 // Minor version component of the current release
VersionPatch = 35 // Patch version component of the current release
VersionPatch = 36 // Patch version component of the current release
VersionMeta = "sepolia" // Version metadata to append to the version string
)