mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/tracers: add comment
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
2adf9757cb
commit
d7702cfb13
1 changed files with 9 additions and 0 deletions
|
|
@ -895,6 +895,15 @@ func (api *API) TraceCall(ctx context.Context, args ethapi.TransactionArgs, bloc
|
||||||
if config != nil && config.Reexec != nil {
|
if config != nil && config.Reexec != nil {
|
||||||
reexec = *config.Reexec
|
reexec = *config.Reexec
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If no transaction index is specified, the trace will be conducted on the state
|
||||||
|
// after executing the specified block. However, if a transaction index is provided,
|
||||||
|
// the trace will be conducted on the state after executing the specified transaction
|
||||||
|
// within the specified block.
|
||||||
|
// When "latest" is used without a transaction index, it means that the simulation is
|
||||||
|
// done on the state after the latest block execution. Conversely, when "latest" is used
|
||||||
|
// with a transaction index, it indicates simulating on the intermediate state after a
|
||||||
|
// specific transaction within the most recent block.
|
||||||
if config != nil && config.TxIndex != nil {
|
if config != nil && config.TxIndex != nil {
|
||||||
_, _, statedb, release, err = api.backend.StateAtTransaction(ctx, block, int(*config.TxIndex), reexec)
|
_, _, statedb, release, err = api.backend.StateAtTransaction(ctx, block, int(*config.TxIndex), reexec)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue