aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
Diffstat (limited to 'xeth')
-rw-r--r--xeth/hexface.go4
-rw-r--r--xeth/pipe.go8
-rw-r--r--xeth/world.go2
3 files changed, 7 insertions, 7 deletions
diff --git a/xeth/hexface.go b/xeth/hexface.go
index 5c8e7a3c7..21e82e37d 100644
--- a/xeth/hexface.go
+++ b/xeth/hexface.go
@@ -224,10 +224,10 @@ func (self *JSXEth) Transact(key, toStr, valueStr, gasStr, gasPriceStr, codeStr
tx = chain.NewTransactionMessage(hash, value, gas, gasPrice, data)
}
- acc := self.obj.StateManager().TransState().GetOrNewStateObject(keyPair.Address())
+ acc := self.obj.BlockManager().TransState().GetOrNewStateObject(keyPair.Address())
tx.Nonce = acc.Nonce
acc.Nonce += 1
- self.obj.StateManager().TransState().UpdateStateObject(acc)
+ self.obj.BlockManager().TransState().UpdateStateObject(acc)
tx.Sign(keyPair.PrivateKey)
self.obj.TxPool().QueueTransaction(tx)
diff --git a/xeth/pipe.go b/xeth/pipe.go
index 25a69137d..abed8ef9a 100644
--- a/xeth/pipe.go
+++ b/xeth/pipe.go
@@ -24,7 +24,7 @@ type VmVars struct {
type XEth struct {
obj chain.EthManager
- stateManager *chain.StateManager
+ blockManager *chain.BlockManager
blockChain *chain.ChainManager
world *World
@@ -34,7 +34,7 @@ type XEth struct {
func New(obj chain.EthManager) *XEth {
pipe := &XEth{
obj: obj,
- stateManager: obj.StateManager(),
+ blockManager: obj.BlockManager(),
blockChain: obj.ChainManager(),
}
pipe.world = NewWorld(pipe)
@@ -137,10 +137,10 @@ func (self *XEth) Transact(key *crypto.KeyPair, rec []byte, value, gas, price *e
tx = chain.NewTransactionMessage(hash, value.BigInt(), gas.BigInt(), price.BigInt(), data)
}
- acc := self.stateManager.TransState().GetOrNewStateObject(key.Address())
+ acc := self.blockManager.TransState().GetOrNewStateObject(key.Address())
tx.Nonce = acc.Nonce
acc.Nonce += 1
- self.stateManager.TransState().UpdateStateObject(acc)
+ self.blockManager.TransState().UpdateStateObject(acc)
tx.Sign(key.PrivateKey)
self.obj.TxPool().QueueTransaction(tx)
diff --git a/xeth/world.go b/xeth/world.go
index dda2df274..6fb757d67 100644
--- a/xeth/world.go
+++ b/xeth/world.go
@@ -23,7 +23,7 @@ func (self *XEth) World() *World {
}
func (self *World) State() *state.State {
- return self.pipe.stateManager.CurrentState()
+ return self.pipe.blockManager.CurrentState()
}
func (self *World) Get(addr []byte) *Object {