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

runTx: add blockGasUsed param #1264

Merged
merged 5 commits into from May 21, 2021
Merged

runTx: add blockGasUsed param #1264

merged 5 commits into from May 21, 2021

Conversation

ryanio
Copy link
Contributor

@ryanio ryanio commented May 21, 2021

This PR adds a blockGasUsed param to runTx for accurate tx receipt generation, removing the need for workarounds.

See discussion.

@codecov
Copy link

codecov bot commented May 21, 2021

Codecov Report

Merging #1264 (f79ec2b) into master (452c6ae) will increase coverage by 1.73%.
The diff coverage is 71.42%.

Impacted file tree graph

Flag Coverage Δ
block 86.44% <ø> (ø)
blockchain 84.36% <ø> (-0.07%) ⬇️
client 84.98% <ø> (-0.28%) ⬇️
common 88.12% <ø> (-0.69%) ⬇️
devp2p 83.82% <ø> (-0.42%) ⬇️
ethash 82.08% <ø> (ø)
tx 89.18% <100.00%> (ø)
vm 86.68% <60.00%> (+5.62%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

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

Looks good and nice test adoptions and additions!

Will merge.

*/
cliqueBeneficiary?: Address
blockGasUsed?: BN
Copy link
Member

Choose a reason for hiding this comment

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

Ah, yeah, this is a lot more targeted, really somewhat relieved on seeing this change here. 😀

@holgerd77 holgerd77 merged commit a1e7a34 into master May 21, 2021
@holgerd77 holgerd77 deleted the add-runTx-blockGasUsed branch May 21, 2021 08:09
@holgerd77 holgerd77 mentioned this pull request May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants