Skip to content

Commit

Permalink
ethclient: fix new block->header subscription endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Sep 8, 2016
1 parent 6fb8ae2 commit ca37730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca37730

Please sign in to comment.