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

core, cmd, eth, internal, miner: rework makeReceipt #30791

Closed
wants to merge 1 commit into from

Conversation

rjl493456442
Copy link
Member

Work in progress

if hooks := evm.Config.Tracer; hooks != nil {
if hooks.OnTxStart != nil {
hooks.OnTxStart(evm.GetVMContext(), tx, msg.From)
}
if hooks.OnTxEnd != nil {
// TODO (rjl493456442) the receipt only contain consensus fields,
// should we derive the others here?
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes please. I can spot quite a few of these fields being used here https://github.com/streamingfast/go-ethereum/blob/9bf4d2482fb4fc3ea208fa55884c63d56a6858e5/eth/tracers/firehose.go#L576 including TransactionIndex, GasUsed, BlobGasUsed, BlobGasPrice.

@rjl493456442
Copy link
Member Author

It might be a bad idea. Internally, Geth assumes the geth-specific fields in receipt are always available and uses them everywhere. For example, BlobGasUsed is directly used for calculating the blobGasUsed in a block.

Therefore, this change could be dangerous as the assumption could be silently broken. I will close it for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants