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

Re: #1267: Deduct gas cost for reverted txs #1410

Closed
wants to merge 1 commit into from

Conversation

arajasek
Copy link
Contributor

In the current setup, when a msg fails and needs to be reverted, the deduction of gas cost also gets reverted. This PR fixes this by directly deducting gas costs from the sender when a msg is reverted.

This test demonstrates the bug being fixed: filecoin-project/chain-validation@590c14b

@Kubuxu
Copy link
Contributor

Kubuxu commented Mar 17, 2020

Another option might be to create snapshot after gas is transferred to gasHolder account.

@whyrusleeping
Copy link
Member

Yeah, I think @Kubuxu is right here. We should do the snapshotting after the gas withdrawal. Nonces also should be incremented after message failures, is that not happening right 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.

3 participants