diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-20 22:28:11 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-21 23:09:19 +0800 |
commit | 07c3de3f75a579cf573fae7bf7c0ec11427dda9f (patch) | |
tree | 2007b80da898cb96c9a00f1565bebb64271d712b /xeth | |
parent | 3deded28a50398b8ce108c72f27ea861c1bce178 (diff) | |
download | dexon-07c3de3f75a579cf573fae7bf7c0ec11427dda9f.tar.gz dexon-07c3de3f75a579cf573fae7bf7c0ec11427dda9f.tar.zst dexon-07c3de3f75a579cf573fae7bf7c0ec11427dda9f.zip |
core, miner, xeth: renamed gas methods
* BuyGas => SubGas
* RefundGas => AddGas
* SetGasPool => SetGasLimit
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 7342be4a9..99e17423a 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -212,7 +212,7 @@ func (self *XEth) ApplyTestTxs(statedb *state.StateDB, address common.Address, t block := self.backend.ChainManager().NewBlock(address) coinbase := statedb.GetStateObject(address) - coinbase.SetGasPool(big.NewInt(10000000)) + coinbase.SetGasLimit(big.NewInt(10000000)) txs := self.backend.TxPool().GetQueuedTransactions() for i := 0; i < len(txs); i++ { @@ -827,7 +827,7 @@ func (self *XEth) Call(fromStr, toStr, valueStr, gasStr, gasPriceStr, dataStr st } from.SetBalance(common.MaxBig) - from.SetGasPool(self.backend.ChainManager().GasLimit()) + from.SetGasLimit(self.backend.ChainManager().GasLimit()) msg := callmsg{ from: from, to: common.HexToAddress(toStr), |