Skip to content

Commit 315b9b1

Browse files
Ivo Georgievfjl
authored andcommitted
ethclient: remove empty object in newHeads subscription call (#16454)
1 parent 8de655e commit 315b9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethclient/ethclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func (ec *Client) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, err
296296
// SubscribeNewHead subscribes to notifications about the current blockchain head
297297
// on the given channel.
298298
func (ec *Client) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error) {
299-
return ec.c.EthSubscribe(ctx, ch, "newHeads", map[string]struct{}{})
299+
return ec.c.EthSubscribe(ctx, ch, "newHeads")
300300
}
301301

302302
// State Access

0 commit comments

Comments
 (0)