diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 12:23:48 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 12:23:48 +0800 |
commit | 754160afea7fc230c3236d5494beefeb03b94140 (patch) | |
tree | 1094943ac83a380d52fbf09f08b6b9e2f2533d2c /xeth | |
parent | 3cea7d87c1b9fadf19211fad2aece303b1677e27 (diff) | |
download | dexon-754160afea7fc230c3236d5494beefeb03b94140.tar.gz dexon-754160afea7fc230c3236d5494beefeb03b94140.tar.zst dexon-754160afea7fc230c3236d5494beefeb03b94140.zip |
Move gas defaults to XEth
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 504a93f58..690db5135 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -25,6 +25,8 @@ import ( var ( pipelogger = logger.NewLogger("XETH") filterTickerTime = 5 * time.Minute + defaultGasPrice = big.NewInt(10000000000000) //150000000000 + defaultGas = big.NewInt(90000) //500000 ) // to resolve the import cycle @@ -154,6 +156,9 @@ func (self *XEth) stop() { close(self.quit) } +func (self *XEth) DefaultGas() *big.Int { return defaultGas } +func (self *XEth) DefaultGasPrice() *big.Int { return defaultGasPrice } + func (self *XEth) AtStateNum(num int64) *XEth { chain := self.Backend().ChainManager() var block *types.Block @@ -486,11 +491,6 @@ func (self *XEth) PushTx(encodedTx string) (string, error) { return common.ToHex(tx.Hash()), nil } -var ( - defaultGasPrice = big.NewInt(10000000000000) - defaultGas = big.NewInt(90000) -) - func (self *XEth) Call(fromStr, toStr, valueStr, gasStr, gasPriceStr, dataStr string) (string, error) { statedb := self.State().State() //self.chainManager.TransState() msg := callmsg{ |