aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-05 07:18:44 +0800
committerobscuren <geffobscura@gmail.com>2015-01-05 07:18:44 +0800
commitc1dee151445d1d9700e0c623916299370868490c (patch)
tree411a1738f8284a49fc51c7315a5b211b73412907 /xeth
parent987119cd4adcdbc7ebfd0bbb027a0c9e2a7487e9 (diff)
downloadgo-tangerine-c1dee151445d1d9700e0c623916299370868490c.tar.gz
go-tangerine-c1dee151445d1d9700e0c623916299370868490c.tar.zst
go-tangerine-c1dee151445d1d9700e0c623916299370868490c.zip
BlockManager => BlockProcessor
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go (renamed from xeth/pipe.go)16
1 files changed, 8 insertions, 8 deletions
diff --git a/xeth/pipe.go b/xeth/xeth.go
index 05cefd8ad..a10ccfc8b 100644
--- a/xeth/pipe.go
+++ b/xeth/xeth.go
@@ -20,19 +20,19 @@ type VmVars struct {
}
type XEth struct {
- obj core.EthManager
- blockManager *core.BlockManager
- chainManager *core.ChainManager
- world *World
+ obj core.EthManager
+ blockProcessor *core.BlockProcessor
+ chainManager *core.ChainManager
+ world *World
Vm VmVars
}
func New(obj core.EthManager) *XEth {
pipe := &XEth{
- obj: obj,
- blockManager: obj.BlockManager(),
- chainManager: obj.ChainManager(),
+ obj: obj,
+ blockProcessor: obj.BlockProcessor(),
+ chainManager: obj.ChainManager(),
}
pipe.world = NewWorld(pipe)
@@ -141,7 +141,7 @@ func (self *XEth) Transact(key *crypto.KeyPair, to []byte, value, gas, price *et
block := self.chainManager.NewBlock(key.Address())
coinbase := state.GetOrNewStateObject(key.Address())
coinbase.SetGasPool(block.GasLimit())
- self.blockManager.ApplyTransactions(coinbase, state, block, types.Transactions{tx}, true)
+ self.blockProcessor.ApplyTransactions(coinbase, state, block, types.Transactions{tx}, true)
err := self.obj.TxPool().Add(tx)
if err != nil {