add xeth frontend for bzz api in console

This commit is contained in:
zelig 2015-05-29 01:36:26 +01:00
parent ff2081f5fd
commit 96ed21fad7

View file

@ -91,8 +91,7 @@ func newJSRE(ethereum *eth.Ethereum, libPath, corsDomain string, bzzEnabled bool
if bzzEnabled { if bzzEnabled {
ds.RegisterProtocol("bzz", &bzz.RoundTripper{Port: bzzPort}) ds.RegisterProtocol("bzz", &bzz.RoundTripper{Port: bzzPort})
bzz.NewJSApi(js.re, js.ethereum.Swarm) bzz.NewJSApi(js.re, js.ethereum.Swarm)
// nil for no natsped, memoryrrbmm d js.ethereum.Swarm.Resolver = resolver.New(xeth.New(ethereum, f))
js.ethereum.Swarm.Resolver = resolver.New(xeth.New(ethereum, nil))
} }
if !liner.TerminalSupported() || !interactive { if !liner.TerminalSupported() || !interactive {