From 401bfd06eb475225c46647841b48ac79993498da Mon Sep 17 00:00:00 2001 From: leonz789 Date: Mon, 19 Aug 2024 13:37:41 +0800 Subject: [PATCH] set gas to 0, update go-thereum version in go.mod to keep consistent --- cmd/feeder_tool.go | 2 +- exoclient/tx.go | 5 ++--- go.mod | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/feeder_tool.go b/cmd/feeder_tool.go index 3faedff..a10572c 100644 --- a/cmd/feeder_tool.go +++ b/cmd/feeder_tool.go @@ -163,7 +163,7 @@ func RunPriceFeeder(conf feedertypes.Config, mnemonic string, sourcesPath string if txResponse.Code == statusOk { log.Printf("sendTx successed, feederID:%d", feederID) } else { - log.Printf("sendTx failed, feederID:%d", feederID) + log.Printf("sendTx failed, feederID:%d, response:%v", feederID, txResponse) } } } diff --git a/exoclient/tx.go b/exoclient/tx.go index dff06db..50f641f 100644 --- a/exoclient/tx.go +++ b/exoclient/tx.go @@ -4,7 +4,6 @@ import ( "context" "encoding/base64" "fmt" - "math" "time" "github.com/ExocoreNetwork/exocore/app" @@ -73,7 +72,7 @@ func Init(mnemonic, privBase64, cID string, standalone bool) { defaultGasPrice = int64(7) // TODO: set from exocore's params - blockMaxGas = 20000 + blockMaxGas = 0 } // signMsg signs the message with consensusskey @@ -81,7 +80,7 @@ func signMsg(cc *grpc.ClientConn, gasPrice int64, msgs ...sdk.Msg) authsigning.T txBuilder := txCfg.NewTxBuilder() _ = txBuilder.SetMsgs(msgs...) txBuilder.SetGasLimit(blockMaxGas) - txBuilder.SetFeeAmount(sdk.Coins{types.NewInt64Coin(denom, math.MaxInt64)}) + txBuilder.SetFeeAmount(sdk.Coins{types.NewInt64Coin(denom, 0)}) signMode := txCfg.SignModeHandler().DefaultMode() diff --git a/go.mod b/go.mod index f0e7b4d..3923743 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/ExocoreNetwork/exocore v1.0.2 github.com/cosmos/cosmos-sdk v0.47.8 github.com/cosmos/go-bip39 v1.0.0 - github.com/ethereum/go-ethereum v1.13.15 + github.com/ethereum/go-ethereum v1.13.5-0.20231027145059-2d7dba024d76 github.com/evmos/evmos/v14 v14.0.0-rc4 github.com/gorilla/websocket v1.5.0 github.com/spf13/cobra v1.8.0