Move RemoteAgent to miner pkg

This commit is contained in:
Taylor Gerring
2015-03-23 11:21:41 +01:00
parent 439481d177
commit 91a2275ad3
2 changed files with 7 additions and 8 deletions

View File

@ -102,7 +102,7 @@ type XEth struct {
// register map[string][]*interface{} // TODO improve return type
// Miner agent
agent *RemoteAgent
agent *miner.RemoteAgent
}
// New creates an XEth that uses the given frontend.
@ -120,7 +120,7 @@ func New(eth Backend, frontend Frontend) *XEth {
frontend: frontend,
logs: make(map[int]*logFilter),
messages: make(map[int]*whisperFilter),
agent: NewRemoteAgent(),
agent: miner.NewRemoteAgent(),
}
eth.Miner().Register(xeth.agent)
@ -170,7 +170,7 @@ func (self *XEth) stop() {
func (self *XEth) DefaultGas() *big.Int { return defaultGas }
func (self *XEth) DefaultGasPrice() *big.Int { return defaultGasPrice }
func (self *XEth) RemoteMining() *RemoteAgent { return self.agent }
func (self *XEth) RemoteMining() *miner.RemoteAgent { return self.agent }
func (self *XEth) AtStateNum(num int64) *XEth {
chain := self.Backend().ChainManager()