From ca37730c9ddf8b3b7e59abc95f462de54ac9457e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 8 Sep 2016 17:17:55 +0300 Subject: [PATCH] ethclient: fix new block->header subscription endpoint --- ethclient/ethclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 50346f6aec..ffa8228cc1 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -227,7 +227,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, "newBlocks", map[string]struct{}{}) + return ec.c.EthSubscribe(ctx, ch, "newHeads", map[string]struct{}{}) } // State Access