@@ -41,7 +41,6 @@ import (
4141 "github.com/ethereum/go-ethereum/ethutil"
4242 "github.com/ethereum/go-ethereum/logger"
4343 "github.com/ethereum/go-ethereum/miner"
44- "github.com/ethereum/go-ethereum/p2p"
4544 "github.com/ethereum/go-ethereum/ui/qt/qwhisper"
4645 "github.com/ethereum/go-ethereum/xeth"
4746 "github.com/obscuren/qml"
@@ -77,33 +76,31 @@ type Gui struct {
7776
7877 xeth * xeth.XEth
7978
80- Session string
81- clientIdentity * p2p.SimpleClientIdentity
82- config * ethutil.ConfigManager
79+ Session string
80+ config * ethutil.ConfigManager
8381
8482 plugins map [string ]plugin
8583
8684 miner * miner.Miner
8785}
8886
8987// Create GUI, but doesn't start it
90- func NewWindow (ethereum * eth.Ethereum , config * ethutil.ConfigManager , clientIdentity * p2p. SimpleClientIdentity , session string , logLevel int ) * Gui {
88+ func NewWindow (ethereum * eth.Ethereum , config * ethutil.ConfigManager , session string , logLevel int ) * Gui {
9189 db , err := ethdb .NewLDBDatabase ("tx_database" )
9290 if err != nil {
9391 panic (err )
9492 }
9593
9694 xeth := xeth .New (ethereum )
9795 gui := & Gui {eth : ethereum ,
98- txDb : db ,
99- xeth : xeth ,
100- logLevel : logger .LogLevel (logLevel ),
101- Session : session ,
102- open : false ,
103- clientIdentity : clientIdentity ,
104- config : config ,
105- plugins : make (map [string ]plugin ),
106- serviceEvents : make (chan ServEv , 1 ),
96+ txDb : db ,
97+ xeth : xeth ,
98+ logLevel : logger .LogLevel (logLevel ),
99+ Session : session ,
100+ open : false ,
101+ config : config ,
102+ plugins : make (map [string ]plugin ),
103+ serviceEvents : make (chan ServEv , 1 ),
107104 }
108105 data , _ := ethutil .ReadAllFile (path .Join (ethutil .Config .ExecPath , "plugins.json" ))
109106 json .Unmarshal ([]byte (data ), & gui .plugins )
0 commit comments