From 7e53915dbb6a9341476b8d52c2c2eb3d5d3c53b5 Mon Sep 17 00:00:00 2001 From: forcodedancing Date: Thu, 9 Mar 2023 10:50:29 +0800 Subject: [PATCH 1/2] feat: add gas config for challenge module --- go.mod | 2 +- go.sum | 4 ++-- x/gashub/types/params.go | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index d2546259f5..f5ea4b631f 100644 --- a/go.mod +++ b/go.mod @@ -185,7 +185,7 @@ replace ( github.com/jhump/protoreflect => github.com/jhump/protoreflect v1.9.0 - github.com/tendermint/tendermint => github.com/bnb-chain/gnfd-tendermint v0.0.2 + github.com/tendermint/tendermint => github.com/bnb-chain/greenfield-tendermint v0.0.2 ) retract v0.46.2 diff --git a/go.sum b/go.sum index ab7b4625b1..25053b5efb 100644 --- a/go.sum +++ b/go.sum @@ -157,8 +157,8 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= -github.com/bnb-chain/gnfd-tendermint v0.0.2 h1:2Oy7B5A7W/55teZNhlrFR9SamYNjCXAQNjwsbt534jM= -github.com/bnb-chain/gnfd-tendermint v0.0.2/go.mod h1:/v9z9F6cq0+f7EGG92lYSLBcPYQDILoK91X8YM28hWo= +github.com/bnb-chain/greenfield-tendermint v0.0.2 h1:SNb3C9QhYklaLgY6onimLHR42IlB6NQJvQqwmj/1ybM= +github.com/bnb-chain/greenfield-tendermint v0.0.2/go.mod h1:/v9z9F6cq0+f7EGG92lYSLBcPYQDILoK91X8YM28hWo= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= github.com/bradfitz/gomemcache v0.0.0-20170208213004-1952afaa557d/go.mod h1:PmM6Mmwb0LSuEubjR8N7PtNe1KxZLtOUHtbeikc5h60= diff --git a/x/gashub/types/params.go b/x/gashub/types/params.go index 88b76d52aa..387f00ba37 100644 --- a/x/gashub/types/params.go +++ b/x/gashub/types/params.go @@ -106,6 +106,8 @@ func DefaultParams() Params { NewMsgGasParamsWithFixedGas("/bnbchain.greenfield.storage.MsgDeposit", 1e5), NewMsgGasParamsWithFixedGas("/bnbchain.greenfield.storage.MsgWithdraw", 1e5), NewMsgGasParamsWithFixedGas("/bnbchain.greenfield.storage.MsgDisableRefund", 1e5), + NewMsgGasParamsWithFixedGas("/bnbchain.greenfield.challenge.MsgSubmit", 12e3), + NewMsgGasParamsWithFixedGas("/bnbchain.greenfield.challenge.MsgAttest", 12e3), NewMsgGasParamsWithDynamicGas( "/cosmos.authz.v1beta1.MsgGrant", &MsgGasParams_GrantType{ From 42755de4321f29919cd34503ab5f350ed428016d Mon Sep 17 00:00:00 2001 From: forcodedancing Date: Thu, 9 Mar 2023 11:16:35 +0800 Subject: [PATCH 2/2] update gas for attest message --- x/gashub/types/params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/gashub/types/params.go b/x/gashub/types/params.go index 387f00ba37..886775aed2 100644 --- a/x/gashub/types/params.go +++ b/x/gashub/types/params.go @@ -107,7 +107,7 @@ func DefaultParams() Params { NewMsgGasParamsWithFixedGas("/bnbchain.greenfield.storage.MsgWithdraw", 1e5), NewMsgGasParamsWithFixedGas("/bnbchain.greenfield.storage.MsgDisableRefund", 1e5), NewMsgGasParamsWithFixedGas("/bnbchain.greenfield.challenge.MsgSubmit", 12e3), - NewMsgGasParamsWithFixedGas("/bnbchain.greenfield.challenge.MsgAttest", 12e3), + NewMsgGasParamsWithFixedGas("/bnbchain.greenfield.challenge.MsgAttest", 1e2), NewMsgGasParamsWithDynamicGas( "/cosmos.authz.v1beta1.MsgGrant", &MsgGasParams_GrantType{