aboutsummaryrefslogtreecommitdiffstats
path: root/ethclient
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-09-08 22:17:55 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-09-08 22:17:55 +0800
commitca37730c9ddf8b3b7e59abc95f462de54ac9457e (patch)
tree3d78afff03a6560de9100083746f7872b1cc1aa8 /ethclient
parent6fb8ae2bd6eb2b28f9b44799a8299183d634be80 (diff)
downloaddexon-ca37730c9ddf8b3b7e59abc95f462de54ac9457e.tar
dexon-ca37730c9ddf8b3b7e59abc95f462de54ac9457e.tar.gz
dexon-ca37730c9ddf8b3b7e59abc95f462de54ac9457e.tar.bz2
dexon-ca37730c9ddf8b3b7e59abc95f462de54ac9457e.tar.lz
dexon-ca37730c9ddf8b3b7e59abc95f462de54ac9457e.tar.xz
dexon-ca37730c9ddf8b3b7e59abc95f462de54ac9457e.tar.zst
dexon-ca37730c9ddf8b3b7e59abc95f462de54ac9457e.zip
ethclient: fix new block->header subscription endpoint
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