aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/world.go
diff options
context:
space:
mode:
Diffstat (limited to 'xeth/world.go')
-rw-r--r--xeth/world.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/xeth/world.go b/xeth/world.go
index c5c20c224..008a08423 100644
--- a/xeth/world.go
+++ b/xeth/world.go
@@ -1,8 +1,7 @@
package xeth
import (
- "container/list"
-
+ "github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/state"
)
@@ -23,7 +22,7 @@ func (self *XEth) World() *World {
}
func (self *World) State() *state.StateDB {
- return self.pipe.blockManager.CurrentState()
+ return self.pipe.chainManager.State()
}
func (self *World) Get(addr []byte) *Object {
@@ -55,7 +54,7 @@ func (self *World) IsListening() bool {
return self.pipe.obj.IsListening()
}
-func (self *World) Peers() *list.List {
+func (self *World) Peers() []*p2p.Peer {
return self.pipe.obj.Peers()
}