Skip to content

Commit

Permalink
ethclient: remove empty object in newHeads subscription call (#16454)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo Georgiev authored and fjl committed Apr 9, 2018
1 parent 8de655e commit 315b9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (ec *Client) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, err
// SubscribeNewHead subscribes to notifications about the current blockchain head
// on the given channel.
func (ec *Client) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error) {
return ec.c.EthSubscribe(ctx, ch, "newHeads", map[string]struct{}{})
return ec.c.EthSubscribe(ctx, ch, "newHeads")
}

// State Access
Expand Down

0 comments on commit 315b9b1

Please sign in to comment.