Skip to content

Commit

Permalink
consensus/bor: add debug log for state sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Raneet10 committed Jan 31, 2025
1 parent 6a40234 commit 745f852
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions consensus/bor/heimdall/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,20 @@ func (h *HeimdallClient) StateSyncEvents(ctx context.Context, fromID uint64, to

ctx = withRequestType(ctx, stateSyncRequest)

response, err := FetchWithRetry[StateSyncEventsResponse](ctx, h.client, url, h.closeCh)
// response, err := FetchWithRetry[StateSyncEventsResponse](ctx, h.client, url, h.closeCh)
// if err != nil {
// return nil, err
// }

request := &Request{client: h.client, url: url, start: time.Now()}
response, err := Fetch[StateSyncEventsResponse](ctx, request)

if err != nil {
return nil, err
fmt.Println("ERROR: ", err)
}

fmt.Println("RESULT: ", response)

if response == nil || response.Result == nil {
// status 204
break
Expand Down

0 comments on commit 745f852

Please sign in to comment.