aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-17 22:33:34 +0800
committerBas van Kervel <bas@ethdev.com>2015-06-22 15:17:09 +0800
commit603192cfa7eb081d9504170677045794cff3b7ab (patch)
tree950609f7de3d3ae88dd891b7d30399b15d2c422d /cmd
parenta4a4e9fcf824189d8d06940492a01effe6e6cf92 (diff)
downloadgo-tangerine-603192cfa7eb081d9504170677045794cff3b7ab.tar.gz
go-tangerine-603192cfa7eb081d9504170677045794cff3b7ab.tar.zst
go-tangerine-603192cfa7eb081d9504170677045794cff3b7ab.zip
cleanup comments/code
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/js.go51
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 {