ethclient: add Close method

Closes the underlying RPC connection.
This commit is contained in:
Lorenzo Manacorda 2018-03-14 21:45:37 +01:00
parent ea4ced5bb0
commit cbe882a20e

View file

@ -55,6 +55,10 @@ func NewClient(c *rpc.Client) *Client {
return &Client{c}
}
func (ec *Client) Close() {
ec.c.Close()
}
// Blockchain Access
// BlockByHash returns the given full block.