diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-23 18:21:41 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-23 18:21:41 +0800 |
commit | 91a2275ad359b2f72565b926dac7dcd77b14a241 (patch) | |
tree | 7ba7643d0efcfe6d865651552f0ce994b07ffd20 /xeth/xeth.go | |
parent | 439481d177aa6d19ef0254e4e4e0d5a39a8ff09a (diff) | |
download | dexon-91a2275ad359b2f72565b926dac7dcd77b14a241.tar dexon-91a2275ad359b2f72565b926dac7dcd77b14a241.tar.gz dexon-91a2275ad359b2f72565b926dac7dcd77b14a241.tar.bz2 dexon-91a2275ad359b2f72565b926dac7dcd77b14a241.tar.lz dexon-91a2275ad359b2f72565b926dac7dcd77b14a241.tar.xz dexon-91a2275ad359b2f72565b926dac7dcd77b14a241.tar.zst dexon-91a2275ad359b2f72565b926dac7dcd77b14a241.zip |
Move RemoteAgent to miner pkg
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r-- | xeth/xeth.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 5faeeb766..23e523980 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -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() |