diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-05 07:18:44 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-05 07:18:44 +0800 |
commit | c1dee151445d1d9700e0c623916299370868490c (patch) | |
tree | 411a1738f8284a49fc51c7315a5b211b73412907 /xeth | |
parent | 987119cd4adcdbc7ebfd0bbb027a0c9e2a7487e9 (diff) | |
download | dexon-c1dee151445d1d9700e0c623916299370868490c.tar dexon-c1dee151445d1d9700e0c623916299370868490c.tar.gz dexon-c1dee151445d1d9700e0c623916299370868490c.tar.bz2 dexon-c1dee151445d1d9700e0c623916299370868490c.tar.lz dexon-c1dee151445d1d9700e0c623916299370868490c.tar.xz dexon-c1dee151445d1d9700e0c623916299370868490c.tar.zst dexon-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 { |