Merge pull request #1710 from bas-vk/useragent

user agent messages were dumped in some cases
(cherry picked from commit a219159e7e)
This commit is contained in:
Felix Lange
2015-08-25 12:23:25 +02:00
committed by Gustav Simonsson
parent d51d0022ce
commit dc3fb69dce
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}
}