Commit bbe8cefc authored by hezhengjun's avatar hezhengjun Committed by 33cn

modify gaslimit for relay tx

parent 95073bb4
......@@ -22,6 +22,7 @@ var (
const (
// GasLimit : the gas limit in Gwei used for transactions sent with TransactOpts
GasLimit = uint64(100 * 10000)
GasLimit4RelayTx = uint64(10 * 10000)
GasLimit4Deploy = uint64(0) //此处需要设置为0,让交易自行估计,否则将会导致部署失败,TODO:其他解决途径后续调研解决
)
......@@ -35,7 +36,7 @@ func RelayOracleClaimToEthereum(oracleInstance *generated.Oracle, client ethinte
txslog.Error("RelayProphecyClaimToEthereum", "PrepareAuth err", err.Error())
return "", err
}
auth.GasLimit = GasLimit
auth.GasLimit = GasLimit4RelayTx
claimID := crypto.Keccak256Hash(claim.chain33TxHash, claim.Chain33Sender, claim.EthereumReceiver.Bytes(), []byte(claim.Symbol), claim.Amount.Bytes())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment