aboutsummaryrefslogtreecommitdiffstats
path: root/ethclient
diff options
context:
space:
mode:
authorbas-vk <bas-vk@users.noreply.github.com>2016-09-09 22:20:52 +0800
committerGitHub <noreply@github.com>2016-09-09 22:20:52 +0800
commitb7f6404168db31aa9cdfad462dfcd588de2ccaa9 (patch)
tree267cedf7a6b18c386a715b367207e4da238b40fc /ethclient
parent6fb8ae2bd6eb2b28f9b44799a8299183d634be80 (diff)
parentb6b5ec8f75502df65a44cea4f4c07cc28231027c (diff)
downloaddexon-b7f6404168db31aa9cdfad462dfcd588de2ccaa9.tar
dexon-b7f6404168db31aa9cdfad462dfcd588de2ccaa9.tar.gz
dexon-b7f6404168db31aa9cdfad462dfcd588de2ccaa9.tar.bz2
dexon-b7f6404168db31aa9cdfad462dfcd588de2ccaa9.tar.lz
dexon-b7f6404168db31aa9cdfad462dfcd588de2ccaa9.tar.xz
dexon-b7f6404168db31aa9cdfad462dfcd588de2ccaa9.tar.zst
dexon-b7f6404168db31aa9cdfad462dfcd588de2ccaa9.zip
Merge pull request #2984 from karalabe/fix-head-sub
core/types, ethclient: fix broken subscriptions
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 50346f6ae..ffa8228cc 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