rpc: fix a subscription name

This commit is contained in:
Jay 2018-08-08 17:04:37 +09:00
parent a1eb9c7d13
commit 3c2d31e562

View file

@ -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