Skip to content

Commit

Permalink
ethclient: remove SupportsSubscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Nov 30, 2022
1 parent eb93513 commit e82f59d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,13 @@ func (ec *Client) SendTransaction(ctx context.Context, tx *types.Transaction) er
return ec.c.CallContext(ctx, nil, "eth_sendRawTransaction", hexutil.Encode(data))
}

func (ec *Client) SupportsSubscription() bool {
return ec.c.SupportsSubscription()
// SupportSubscriptions reports whether the client transport supports publish/subscribe
// APIs.
//
// Note that calls to SubscribeNewHeads and other subscription-based methods can still
// fail even when this returns true, because the server might not support the mechanism.
func (ec *Client) SupportsSubscriptions() bool {
return ec.c.SupportsSubscriptions()
}

func toBlockNumArg(number *big.Int) string {
Expand Down

0 comments on commit e82f59d

Please sign in to comment.