rpc: fix a subscription name (#17345)

pull/17364/head
Jay 6 years ago committed by Péter Szilágyi
parent 8051a0768a
commit abbb219933
  1. 2
      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

Loading…
Cancel
Save