aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/repl.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereum/repl.go')
-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())
}