mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "ethclient: acquire the rpc.Client (#27246)"
This reverts commit 5ac6bd2dc6.
This commit is contained in:
parent
eae020e045
commit
336cb2973d
1 changed files with 0 additions and 7 deletions
|
|
@ -41,7 +41,6 @@ func Dial(rawurl string) (*Client, error) {
|
||||||
return DialContext(context.Background(), rawurl)
|
return DialContext(context.Background(), rawurl)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DialContext connects a client to the given URL with context.
|
|
||||||
func DialContext(ctx context.Context, rawurl string) (*Client, error) {
|
func DialContext(ctx context.Context, rawurl string) (*Client, error) {
|
||||||
c, err := rpc.DialContext(ctx, rawurl)
|
c, err := rpc.DialContext(ctx, rawurl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -55,16 +54,10 @@ func NewClient(c *rpc.Client) *Client {
|
||||||
return &Client{c}
|
return &Client{c}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close closes the underlying RPC connection.
|
|
||||||
func (ec *Client) Close() {
|
func (ec *Client) Close() {
|
||||||
ec.c.Close()
|
ec.c.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Client gets the underlying RPC client.
|
|
||||||
func (ec *Client) Client() *rpc.Client {
|
|
||||||
return ec.c
|
|
||||||
}
|
|
||||||
|
|
||||||
// Blockchain Access
|
// Blockchain Access
|
||||||
|
|
||||||
// ChainID retrieves the current chain ID for transaction replay protection.
|
// ChainID retrieves the current chain ID for transaction replay protection.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue