aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorJay <codeholic.arena@gmail.com>2018-08-09 13:56:35 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-09 13:56:35 +0800
commitabbb219933504a2aa739353a1cb6157cdd0cf145 (patch)
tree69551221704399d116bcd9ef2bb267e308c29632 /rpc
parent8051a0768a2af6c36b04ffa6fb225a45986d9b89 (diff)
downloadgo-tangerine-abbb219933504a2aa739353a1cb6157cdd0cf145.tar
go-tangerine-abbb219933504a2aa739353a1cb6157cdd0cf145.tar.gz
go-tangerine-abbb219933504a2aa739353a1cb6157cdd0cf145.tar.bz2
go-tangerine-abbb219933504a2aa739353a1cb6157cdd0cf145.tar.lz
go-tangerine-abbb219933504a2aa739353a1cb6157cdd0cf145.tar.xz
go-tangerine-abbb219933504a2aa739353a1cb6157cdd0cf145.tar.zst
go-tangerine-abbb219933504a2aa739353a1cb6157cdd0cf145.zip
rpc: fix a subscription name (#17345)
Diffstat (limited to 'rpc')
-rw-r--r--rpc/client_example_test.go2
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