-
Notifications
You must be signed in to change notification settings - Fork 235
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
Problem: transactions are not rejected when block gas limit exceeded #377
Problem: transactions are not rejected when block gas limit exceeded #377
Conversation
@@ -164,7 +164,7 @@ replace github.com/ethereum/go-ethereum => github.com/crypto-org-chain/go-ethere | |||
// TODO: remove when ibc-go and ethermint upgrades cosmos-sdk | |||
replace github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.44.7-0.20220214161517-8a26cd10b4be | |||
|
|||
replace github.com/tharsis/ethermint => github.com/crypto-org-chain/ethermint v0.7.2-cronos-12 | |||
replace github.com/tharsis/ethermint => github.com/crypto-org-chain/ethermint v0.7.3-0.20220307013541-e3c38bb961a0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember you have said that doing it in checkTx won't help.
Can you describe a bit more about this solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/cosmos/cosmos-sdk/blob/release/v0.44.x/baseapp/baseapp.go#L661
the issue is cosmos-sdk will fetch the gasWanted from the current gas meter after executing ante handler, but previously we have the infinite gas meter which returns zero here.
Fix it for checkTx mode should be enough to fix the tx inclusion issue.
But the fix deliverTx is also good to have because the gasWanted
is also included in the tx result, but not critical I think.
can you change the PR title? |
done, I removed the "add returnValue message on tracing" backport from this PR,better to do in a standalone PR. |
Solution: - backport and modify the fix on ethermint to avoid breaking consensus. - backport tx inclusion logic integration tests - update nix dependencies to fix nix error
Solution:
evmos/ethermint#964
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)