diff options
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/client_example_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/client_example_test.go b/rpc/client_example_test.go index 8276a9ead..9c21c12d5 100644 --- a/rpc/client_example_test.go +++ b/rpc/client_example_test.go @@ -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 |