aboutsummaryrefslogtreecommitdiffstats
path: root/ethclient
diff options
context:
space:
mode:
authorIvo Georgiev <ivo@strem.io>2018-04-09 18:40:58 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-04-09 18:40:58 +0800
commit315b9b18df7994d56f3570c509fc60ad6e3d570f (patch)
treee10d06acad34b85eb01b329d26963b5544e20c4f /ethclient
parent8de655ef3a60053b564f609fd5c889face69f431 (diff)
downloadgo-tangerine-315b9b18df7994d56f3570c509fc60ad6e3d570f.tar
go-tangerine-315b9b18df7994d56f3570c509fc60ad6e3d570f.tar.gz
go-tangerine-315b9b18df7994d56f3570c509fc60ad6e3d570f.tar.bz2
go-tangerine-315b9b18df7994d56f3570c509fc60ad6e3d570f.tar.lz
go-tangerine-315b9b18df7994d56f3570c509fc60ad6e3d570f.tar.xz
go-tangerine-315b9b18df7994d56f3570c509fc60ad6e3d570f.tar.zst
go-tangerine-315b9b18df7994d56f3570c509fc60ad6e3d570f.zip
ethclient: remove empty object in newHeads subscription call (#16454)
Diffstat (limited to 'ethclient')
-rw-r--r--ethclient/ethclient.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go
index 87a912901..7349d6fba 100644
--- a/ethclient/ethclient.go
+++ b/ethclient/ethclient.go
@@ -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