aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/world.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-26 18:14:54 +0800
committerobscuren <geffobscura@gmail.com>2015-02-26 18:14:54 +0800
commit5ab0eaa06d2f5879b9b22778988410bd0c73dcc0 (patch)
tree79c73ac58048497ec40f1654396634e0d292d394 /xeth/world.go
parent52ccaa605e2a693bda64ac7d9fadf88d669ac446 (diff)
downloaddexon-5ab0eaa06d2f5879b9b22778988410bd0c73dcc0.tar.gz
dexon-5ab0eaa06d2f5879b9b22778988410bd0c73dcc0.tar.zst
dexon-5ab0eaa06d2f5879b9b22778988410bd0c73dcc0.zip
wip
Diffstat (limited to 'xeth/world.go')
-rw-r--r--xeth/world.go32
1 files changed, 0 insertions, 32 deletions
diff --git a/xeth/world.go b/xeth/world.go
deleted file mode 100644
index 9cbdd9461..000000000
--- a/xeth/world.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package xeth
-
-import "github.com/ethereum/go-ethereum/state"
-
-type State struct {
- xeth *XEth
-}
-
-func NewState(xeth *XEth) *State {
- return &State{xeth}
-}
-
-func (self *State) State() *state.StateDB {
- return self.xeth.chainManager.TransState()
-}
-
-func (self *State) Get(addr string) *Object {
- return &Object{self.State().GetStateObject(fromHex(addr))}
-}
-
-func (self *State) SafeGet(addr string) *Object {
- return &Object{self.safeGet(addr)}
-}
-
-func (self *State) safeGet(addr string) *state.StateObject {
- object := self.State().GetStateObject(fromHex(addr))
- if object == nil {
- object = state.NewStateObject(fromHex(addr), self.xeth.eth.Db())
- }
-
- return object
-}