Skip to content

Commit ca37730

Browse files
committed
ethclient: fix new block->header subscription endpoint
1 parent 6fb8ae2 commit ca37730

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ethclient/ethclient.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (ec *Client) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, err
227227
// SubscribeNewHead subscribes to notifications about the current blockchain head
228228
// on the given channel.
229229
func (ec *Client) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error) {
230-
return ec.c.EthSubscribe(ctx, ch, "newBlocks", map[string]struct{}{})
230+
return ec.c.EthSubscribe(ctx, ch, "newHeads", map[string]struct{}{})
231231
}
232232

233233
// State Access

0 commit comments

Comments
 (0)