aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-06-02 21:16:37 +0800
committerMaran <maran.hidskes@gmail.com>2014-06-02 21:16:37 +0800
commita6f4eef1dadee9d8caa9b0ac20e2ce4a3034a100 (patch)
treeca1602b7945cc32f3a6b0008225f2767db29bb48 /ethereum
parent98811f11e5d7ccf6e053b46b9ca2ed897140ce47 (diff)
downloaddexon-a6f4eef1dadee9d8caa9b0ac20e2ce4a3034a100.tar.gz
dexon-a6f4eef1dadee9d8caa9b0ac20e2ce4a3034a100.tar.zst
dexon-a6f4eef1dadee9d8caa9b0ac20e2ce4a3034a100.zip
Added Peer Window
Diffstat (limited to 'ethereum')
-rw-r--r--ethereum/repl.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethereum/repl.go b/ethereum/repl.go
index 10f51675e..e59814154 100644
--- a/ethereum/repl.go
+++ b/ethereum/repl.go
@@ -66,6 +66,10 @@ func (self *JSEthereum) GetBlock(hash string) otto.Value {
return self.toVal(&JSBlock{self.PEthereum.GetBlock(hash), self})
}
+func (self *JSEthereum) GetPeers() otto.Value {
+ return self.toVal(self.PEthereum.GetPeers())
+}
+
func (self *JSEthereum) GetKey() otto.Value {
return self.toVal(self.PEthereum.GetKey())
}