aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-13 20:43:29 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-13 20:43:29 +0800
commit28357d657b8c46e841fc96a61758652d2617b068 (patch)
treecf0f61c753f50087029c96f3499b722894edd2b3 /ethchain
parent8ec1bb382aade4aaba20b7fd051a7e52cee61d6e (diff)
downloadgo-tangerine-28357d657b8c46e841fc96a61758652d2617b068.tar
go-tangerine-28357d657b8c46e841fc96a61758652d2617b068.tar.gz
go-tangerine-28357d657b8c46e841fc96a61758652d2617b068.tar.bz2
go-tangerine-28357d657b8c46e841fc96a61758652d2617b068.tar.lz
go-tangerine-28357d657b8c46e841fc96a61758652d2617b068.tar.xz
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.go3
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 {