diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-13 20:43:29 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-13 20:43:29 +0800 |
commit | 28357d657b8c46e841fc96a61758652d2617b068 (patch) | |
tree | cf0f61c753f50087029c96f3499b722894edd2b3 /ethchain | |
parent | 8ec1bb382aade4aaba20b7fd051a7e52cee61d6e (diff) | |
download | go-tangerine-28357d657b8c46e841fc96a61758652d2617b068.tar.gz go-tangerine-28357d657b8c46e841fc96a61758652d2617b068.tar.zst go-tangerine-28357d657b8c46e841fc96a61758652d2617b068.zip |
Implemented new JS/EthPub methods
- getTxCountAt
- getPeerCount
- getIsMining
- getIsListening
- getCoinbase
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_manager.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index dd21a31b1..bc8b46831 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -20,6 +20,9 @@ type EthManager interface { TxPool() *TxPool Broadcast(msgType ethwire.MsgType, data []interface{}) Reactor() *ethutil.ReactorEngine + PeerCount() int + IsMining() bool + IsListening() bool } type StateManager struct { |