mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 03:30:35 +00:00
rpc: fix a subscription name (#17345)
This commit is contained in:
parent
8051a0768a
commit
abbb219933
@ -66,7 +66,7 @@ func subscribeBlocks(client *rpc.Client, subch chan Block) {
|
||||
defer cancel()
|
||||
|
||||
// Subscribe to new blocks.
|
||||
sub, err := client.EthSubscribe(ctx, subch, "newBlocks")
|
||||
sub, err := client.EthSubscribe(ctx, subch, "newHeads")
|
||||
if err != nil {
|
||||
fmt.Println("subscribe error:", err)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user