Skip to content

Commit

Permalink
set gas to 0, update go-thereum version in go.mod to keep consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed Aug 19, 2024
1 parent da450eb commit 401bfd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/feeder_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions exoclient/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/base64"
"fmt"
"math"
"time"

"github.com/ExocoreNetwork/exocore/app"
Expand Down Expand Up @@ -73,15 +72,15 @@ 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
func signMsg(cc *grpc.ClientConn, gasPrice int64, msgs ...sdk.Msg) authsigning.Tx {
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()

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 401bfd0

Please sign in to comment.