Skip to content

Commit

Permalink
Skip undecodable events
Browse files Browse the repository at this point in the history
  • Loading branch information
khssnv committed Mar 14, 2024
1 parent 3dca6df commit 148e626
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blockchain/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func (c *Client) StartEventsListening() (func(), <-chan error, error) {
err = types.EventRecordsRaw(change.StorageData).DecodeEventRecords(meta, events)
if err != nil {
c.errsListening <- fmt.Errorf("events decoder: %w", err)
continue
}

header, err := c.RPC.Chain.GetHeader(set.Block)
Expand Down

0 comments on commit 148e626

Please sign in to comment.