diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-06-17 22:33:34 +0800 |
---|---|---|
committer | Bas van Kervel <bas@ethdev.com> | 2015-06-22 15:17:09 +0800 |
commit | 603192cfa7eb081d9504170677045794cff3b7ab (patch) | |
tree | 950609f7de3d3ae88dd891b7d30399b15d2c422d /cmd/geth | |
parent | a4a4e9fcf824189d8d06940492a01effe6e6cf92 (diff) | |
download | dexon-603192cfa7eb081d9504170677045794cff3b7ab.tar dexon-603192cfa7eb081d9504170677045794cff3b7ab.tar.gz dexon-603192cfa7eb081d9504170677045794cff3b7ab.tar.bz2 dexon-603192cfa7eb081d9504170677045794cff3b7ab.tar.lz dexon-603192cfa7eb081d9504170677045794cff3b7ab.tar.xz dexon-603192cfa7eb081d9504170677045794cff3b7ab.tar.zst dexon-603192cfa7eb081d9504170677045794cff3b7ab.zip |
cleanup comments/code
Diffstat (limited to 'cmd/geth')
-rw-r--r-- | cmd/geth/js.go | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/cmd/geth/js.go b/cmd/geth/js.go index 2ae4817b3..bb5143170 100644 --- a/cmd/geth/js.go +++ b/cmd/geth/js.go @@ -279,57 +279,6 @@ func (js *jsre) apiBindings(f xeth.Frontend) error { return nil } -/* -func (js *jsre) apiBindings(ipcpath string, f xeth.Frontend) { - xe := xeth.New(js.ethereum, f) - apiNames, err := js.suportedApis(ipcpath) - if err != nil { - return - } - - ethApi := rpc.NewEthereumApi(xe) - jeth := rpc.NewJeth(ethApi, js.re, ipcpath) - - js.re.Set("jeth", struct{}{}) - t, _ := js.re.Get("jeth") - jethObj := t.Object() - - jethObj.Set("send", jeth.Send) - jethObj.Set("sendAsync", jeth.Send) - - err := js.re.Compile("bignumber.js", re.BigNumber_JS) - if err != nil { - utils.Fatalf("Error loading bignumber.js: %v", err) - } - - err = js.re.Compile("ethereum.js", re.Web3_JS) - if err != nil { - utils.Fatalf("Error loading ethereum.js: %v", err) - } - - _, err = js.re.Eval("var web3 = require('web3');") - if err != nil { - utils.Fatalf("Error requiring web3: %v", err) - } - - _, err = js.re.Eval("web3.setProvider(jeth)") - if err != nil { - utils.Fatalf("Error setting web3 provider: %v", err) - } - _, err = js.re.Eval(` -var eth = web3.eth; -var shh = web3.shh; -var db = web3.db; -var net = web3.net; - `) - if err != nil { - utils.Fatalf("Error setting namespaces: %v", err) - } - - js.re.Eval(globalRegistrar + "registrar = GlobalRegistrar.at(\"" + globalRegistrarAddr + "\");") -} -*/ - var ds, _ = docserver.New("/") func (self *jsre) ConfirmTransaction(tx string) bool { |