mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-16 21:16:37 +00:00
rpc: fix a subscription name (#17345)
This commit is contained in:
parent
8051a0768a
commit
abbb219933
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ func subscribeBlocks(client *rpc.Client, subch chan Block) {
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
// Subscribe to new blocks.
|
// Subscribe to new blocks.
|
||||||
sub, err := client.EthSubscribe(ctx, subch, "newBlocks")
|
sub, err := client.EthSubscribe(ctx, subch, "newHeads")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("subscribe error:", err)
|
fmt.Println("subscribe error:", err)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue