aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-20 22:28:11 +0800
committerobscuren <geffobscura@gmail.com>2015-06-21 23:09:19 +0800
commit07c3de3f75a579cf573fae7bf7c0ec11427dda9f (patch)
tree2007b80da898cb96c9a00f1565bebb64271d712b /core/chain_makers.go
parent3deded28a50398b8ce108c72f27ea861c1bce178 (diff)
downloadgo-tangerine-07c3de3f75a579cf573fae7bf7c0ec11427dda9f.tar.gz
go-tangerine-07c3de3f75a579cf573fae7bf7c0ec11427dda9f.tar.zst
go-tangerine-07c3de3f75a579cf573fae7bf7c0ec11427dda9f.zip
core, miner, xeth: renamed gas methods
* BuyGas => SubGas * RefundGas => AddGas * SetGasPool => SetGasLimit
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r--core/chain_makers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go
index 4e685f599..76acfd6ca 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -79,7 +79,7 @@ func makeBlock(bman *BlockProcessor, parent *types.Block, i int, db common.Datab
block := newBlockFromParent(addr, parent)
state := state.New(block.Root(), db)
cbase := state.GetOrNewStateObject(addr)
- cbase.SetGasPool(CalcGasLimit(parent))
+ cbase.SetGasLimit(CalcGasLimit(parent))
cbase.AddBalance(BlockReward)
state.Update()
block.SetRoot(state.Root())