Commit abbb2199 authored by Jay's avatar Jay Committed by Péter Szilágyi

rpc: fix a subscription name (#17345)

parent 8051a076
...@@ -66,7 +66,7 @@ func subscribeBlocks(client *rpc.Client, subch chan Block) { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment