Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Changed block header subscription to work on height instead of hash
Browse files Browse the repository at this point in the history
  • Loading branch information
icellan committed Apr 21, 2022
1 parent f3f49b0 commit 1fb54db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor_event_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (h *MonitorEventHandler) ProcessBlockHeaders(ctx context.Context, client *c
h.logger.Error(h.ctx, err.Error())
} else {
var subscription *centrifuge.Subscription
subscription, err = client.NewSubscription("block:headers:history:" + lastBlockHeader.ID)
subscription, err = client.NewSubscription("block:headers:history:" + fmt.Sprint(lastBlockHeader.Height))
if err != nil {
h.logger.Error(h.ctx, err.Error())
} else {
Expand Down

0 comments on commit 1fb54db

Please sign in to comment.