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

Patch ethermint gas tracking #27

Closed
wants to merge 4 commits into from

Conversation

galxy25
Copy link

@galxy25 galxy25 commented Nov 28, 2023

Right now these changes are based off the v0.24.1 release branch (so that I can build and test it on the current mainnet boxes that are running an older version of rocksdb), assuming the changeset is approved I'll rebase this pr to be off of the planned v0.25 release and master branches

Description

Issue 1
Issue 2
Issue 3

@galxy25 galxy25 force-pushed the patch-ethermint-gas-tracking branch from 3632253 to 8cc5bdd Compare November 28, 2023 23:04
@@ -432,6 +451,8 @@ func (k Keeper) TraceTx(c context.Context, req *types.QueryTraceTxRequest) (*typ
}
txConfig.TxHash = ethTx.Hash()
txConfig.TxIndex = uint(i)
// reset gas meter for each transaction
ctx = ctx.WithGasMeter(ethermint.NewInfiniteGasMeterWithLimit(uint64(0)))
Copy link

@DracoLi DracoLi Nov 29, 2023

Choose a reason for hiding this comment

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

is this for debugging? Seem like this should be reset to msg.Gas() for the fix

@galxy25 galxy25 closed this Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants