@@ -20,8 +20,8 @@ package main
2020import (
2121 "encoding/json"
2222
23- "github.com/ethereum/go-ethereum/chain "
24- "github.com/ethereum/go-ethereum/chain /types"
23+ "github.com/ethereum/go-ethereum/core "
24+ "github.com/ethereum/go-ethereum/core /types"
2525 "github.com/ethereum/go-ethereum/event"
2626 "github.com/ethereum/go-ethereum/javascript"
2727 "github.com/ethereum/go-ethereum/state"
@@ -45,12 +45,12 @@ type AppContainer interface {
4545
4646type ExtApplication struct {
4747 * xeth.JSXEth
48- eth chain .EthManager
48+ eth core .EthManager
4949
5050 events event.Subscription
5151 watcherQuitChan chan bool
5252
53- filters map [string ]* chain .Filter
53+ filters map [string ]* core .Filter
5454
5555 container AppContainer
5656 lib * UiLib
@@ -61,7 +61,7 @@ func NewExtApplication(container AppContainer, lib *UiLib) *ExtApplication {
6161 JSXEth : xeth .NewJSXEth (lib .eth ),
6262 eth : lib .eth ,
6363 watcherQuitChan : make (chan bool ),
64- filters : make (map [string ]* chain .Filter ),
64+ filters : make (map [string ]* core .Filter ),
6565 container : container ,
6666 lib : lib ,
6767 }
@@ -81,7 +81,7 @@ func (app *ExtApplication) run() {
8181
8282 // Subscribe to events
8383 mux := app .lib .eth .EventMux ()
84- app .events = mux .Subscribe (chain .NewBlockEvent {}, state .Messages (nil ))
84+ app .events = mux .Subscribe (core .NewBlockEvent {}, state .Messages (nil ))
8585
8686 // Call the main loop
8787 go app .mainLoop ()
@@ -107,7 +107,7 @@ func (app *ExtApplication) stop() {
107107func (app * ExtApplication ) mainLoop () {
108108 for ev := range app .events .Chan () {
109109 switch ev := ev .(type ) {
110- case chain .NewBlockEvent :
110+ case core .NewBlockEvent :
111111 app .container .NewBlock (ev .Block )
112112
113113 case state.Messages :
0 commit comments