Skip to content

Commit

Permalink
fix!: set per transaction gas limit to 10M
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jan 9, 2025
1 parent 00624be commit f6ce3c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ func init() {
}

var (
NodeDir = ".zetacored"
DefaultNodeHome = os.ExpandEnv("$HOME/") + NodeDir
NodeDir = ".zetacored"
DefaultNodeHome = os.ExpandEnv("$HOME/") + NodeDir
TransactionGasLimit uint64 = 10_000_000
)

func getGovProposalHandlers() []govclient.ProposalHandler {
Expand Down Expand Up @@ -784,15 +785,14 @@ func New(
app.SetInitChainer(app.InitChainer)
app.SetBeginBlocker(app.BeginBlocker)

maxGasWanted := cast.ToUint64(appOpts.Get(srvflags.EVMMaxTxGasWanted))
options := ante.HandlerOptions{
AccountKeeper: app.AccountKeeper,
BankKeeper: app.BankKeeper,
EvmKeeper: app.EvmKeeper,
FeeMarketKeeper: app.FeeMarketKeeper,
SignModeHandler: encodingConfig.TxConfig.SignModeHandler(),
SigGasConsumer: evmante.DefaultSigVerificationGasConsumer,
MaxTxGasWanted: maxGasWanted,
MaxTxGasWanted: TransactionGasLimit,
DisabledAuthzMsgs: []string{
sdk.MsgTypeURL(
&evmtypes.MsgEthereumTx{},
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* [3289](https://github.com/zeta-chain/node/pull/3289) - remove all dynamic peer discovery (zetaclient)
* [3314](https://github.com/zeta-chain/node/pull/3314) - update `last_scanned_block_number` metrics more frequently for Solana chain
* [3321](https://github.com/zeta-chain/node/pull/3321) - make crosschain-call with invalid withdraw revert
* [3342](https://github.com/zeta-chain/node/pull/3342) - set per transaction gas limit to 10M

## v24.0.0

Expand Down

0 comments on commit f6ce3c2

Please sign in to comment.