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

Ensure gateway gas metering is consistent with authority #1764

Merged
merged 2 commits into from
May 4, 2022

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented May 3, 2022

This should fix #1742.
The existing gas metering code on the gateway isn't consistent with authority. This leads to the case where gateway passes gas check, but failed on authority, leaving the objects locked on the gateway.
This PR moves all the transaction input checking logic into one single function in transaction_input_checker, and call it from all different places. This ensures consistency.

@lxfind lxfind force-pushed the gateway-consistent-gas-meter branch from 66939d8 to f3947b2 Compare May 3, 2022 23:39
@oxade
Copy link
Contributor

oxade commented May 4, 2022

@lxfind so this is not really adding new functionality but rather unifying existing ones for consistency right?

@lxfind
Copy link
Contributor Author

lxfind commented May 4, 2022

@lxfind so this is not really adding new functionality but rather unifying existing ones for consistency right?

Correct!

@lxfind lxfind enabled auto-merge (squash) May 4, 2022 03:00
@lxfind lxfind force-pushed the gateway-consistent-gas-meter branch from f3d8ded to e134722 Compare May 4, 2022 15:33
@lxfind lxfind mentioned this pull request May 4, 2022
@lxfind lxfind merged commit b2d12b3 into main May 4, 2022
@lxfind lxfind deleted the gateway-consistent-gas-meter branch May 4, 2022 15:52
longbowlu pushed a commit that referenced this pull request May 12, 2022
* Ensure gateway gas metering is consistent with authority

* Fix type
punwai pushed a commit that referenced this pull request Jul 27, 2022
* Ensure gateway gas metering is consistent with authority

* Fix type
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.

"Conflicting transaction already received" after submitting transaction with low gas
2 participants