mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Merge pull request #263 from nguyenbatam/update_gas_limit_for_Tx_randomize
reduce gas limit for Tx randomize
This commit is contained in:
commit
884bb19303
1 changed files with 2 additions and 2 deletions
|
|
@ -175,7 +175,7 @@ func BuildTxSecretRandomize(nonce uint64, randomizeAddr common.Address, epocNumb
|
||||||
encryptSecret := Encrypt(randomizeKey, new(big.Int).SetInt64(secret).String())
|
encryptSecret := Encrypt(randomizeKey, new(big.Int).SetInt64(secret).String())
|
||||||
inputData = append(inputData, common.LeftPadBytes([]byte(encryptSecret), int(sizeOfArray))...)
|
inputData = append(inputData, common.LeftPadBytes([]byte(encryptSecret), int(sizeOfArray))...)
|
||||||
}
|
}
|
||||||
tx := types.NewTransaction(nonce, randomizeAddr, big.NewInt(0), 4200000, big.NewInt(0), inputData)
|
tx := types.NewTransaction(nonce, randomizeAddr, big.NewInt(0), 200000, big.NewInt(0), inputData)
|
||||||
|
|
||||||
return tx, nil
|
return tx, nil
|
||||||
}
|
}
|
||||||
|
|
@ -184,7 +184,7 @@ func BuildTxSecretRandomize(nonce uint64, randomizeAddr common.Address, epocNumb
|
||||||
func BuildTxOpeningRandomize(nonce uint64, randomizeAddr common.Address, randomizeKey []byte) (*types.Transaction, error) {
|
func BuildTxOpeningRandomize(nonce uint64, randomizeAddr common.Address, randomizeKey []byte) (*types.Transaction, error) {
|
||||||
data := common.Hex2Bytes(common.HexSetOpening)
|
data := common.Hex2Bytes(common.HexSetOpening)
|
||||||
inputData := append(data, randomizeKey...)
|
inputData := append(data, randomizeKey...)
|
||||||
tx := types.NewTransaction(nonce, randomizeAddr, big.NewInt(0), 4200000, big.NewInt(0), inputData)
|
tx := types.NewTransaction(nonce, randomizeAddr, big.NewInt(0), 200000, big.NewInt(0), inputData)
|
||||||
|
|
||||||
return tx, nil
|
return tx, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue