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

modify gaslimit for relay tx

parent 95073bb4
...@@ -21,8 +21,9 @@ var ( ...@@ -21,8 +21,9 @@ var (
//const ... //const ...
const ( const (
// GasLimit : the gas limit in Gwei used for transactions sent with TransactOpts // GasLimit : the gas limit in Gwei used for transactions sent with TransactOpts
GasLimit = uint64(100 * 10000) GasLimit = uint64(100 * 10000)
GasLimit4Deploy = uint64(0) //此处需要设置为0,让交易自行估计,否则将会导致部署失败,TODO:其他解决途径后续调研解决 GasLimit4RelayTx = uint64(10 * 10000)
GasLimit4Deploy = uint64(0) //此处需要设置为0,让交易自行估计,否则将会导致部署失败,TODO:其他解决途径后续调研解决
) )
// RelayOracleClaimToEthereum : relays the provided burn or lock to Chain33Bridge contract on the Ethereum network // RelayOracleClaimToEthereum : relays the provided burn or lock to Chain33Bridge contract on the Ethereum network
...@@ -35,7 +36,7 @@ func RelayOracleClaimToEthereum(oracleInstance *generated.Oracle, client ethinte ...@@ -35,7 +36,7 @@ func RelayOracleClaimToEthereum(oracleInstance *generated.Oracle, client ethinte
txslog.Error("RelayProphecyClaimToEthereum", "PrepareAuth err", err.Error()) txslog.Error("RelayProphecyClaimToEthereum", "PrepareAuth err", err.Error())
return "", err return "", err
} }
auth.GasLimit = GasLimit auth.GasLimit = GasLimit4RelayTx
claimID := crypto.Keccak256Hash(claim.chain33TxHash, claim.Chain33Sender, claim.EthereumReceiver.Bytes(), []byte(claim.Symbol), claim.Amount.Bytes()) 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