Set ipc channel as user agent client

This commit is contained in:
Bas van Kervel
2015-08-24 12:22:12 +02:00
parent d51d0022ce
commit d910148a96
4 changed files with 48 additions and 20 deletions

View File

@ -40,16 +40,6 @@ type Jeth struct {
}
func NewJeth(ethApi shared.EthereumApi, re *jsre.JSRE, client comms.EthereumClient, fe xeth.Frontend) *Jeth {
// enable the jeth as the user agent
req := shared.Request{
Id: 0,
Method: useragent.EnableUserAgentMethod,
Jsonrpc: shared.JsonRpcVersion,
Params: []byte("[]"),
}
client.Send(&req)
client.Recv()
return &Jeth{ethApi, re, client, fe}
}