ethclient: remove empty object in newHeads subscription call (#16454)

This commit is contained in:
Ivo Georgiev 2018-04-09 13:40:58 +03:00 committed by Felix Lange
parent 8de655ef3a
commit 315b9b18df
1 changed files with 1 additions and 1 deletions

View File

@ -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