Lowered default gas price and increased default gas limit

This commit is contained in:
obscuren
2015-03-11 17:36:35 +01:00
parent 2da7af4ba0
commit c01d4c2f4c
3 changed files with 17 additions and 10 deletions

View File

@ -21,8 +21,8 @@ import (
)
var (
defaultGasPrice = big.NewInt(10000000000000)
defaultGas = big.NewInt(50000)
defaultGasPrice = big.NewInt(150000000000)
defaultGas = big.NewInt(500000)
filterTickerTime = 15 * time.Second
)
@ -252,7 +252,6 @@ func (p *EthereumApi) Transact(args *NewTxArgs, reply *interface{}) (err error)
*/
// TODO: align default values to have the same type, e.g. not depend on
// ethutil.Value conversions later on
fmt.Println("gas", args.Gas)
if args.Gas.Cmp(big.NewInt(0)) == 0 {
args.Gas = defaultGas
}