Skip to content

Native call tracer (block mode) does not have a way to populate txHash  #24655

@evanzbitgo

Description

@evanzbitgo

Rationale

Why should this feature exist?
When tracing a block with call tracer, we need to know the txHash of each transaction. Unfortunately, we have no way to populate that txHash even with custom tracer.

What are the use-cases?
We need have a reliable way to map a txHash to its traces. Without this feature, we have to rely on the transaction order within the block which does not give us a strong confidence of correctness.

Implementation

Do you have ideas regarding the implementation of this feature?
We need to add txHash into TxContext struct

Are you willing to implement this feature?
Yes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions