Skip to content

Commit

Permalink
ethclient: remove empty object in newHeads subscription call (ethereu…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo Georgiev authored and kimmyeonghun committed Jul 2, 2018
1 parent c8fcf1d commit 8dfb4e7
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 8dfb4e7

Please sign in to comment.