Skip to content

Commit

Permalink
Merge pull request #89 from Cerebellum-Network/fix/update-metadata-fo…
Browse files Browse the repository at this point in the history
…r-each-block

Update metadata for each block
  • Loading branch information
khssnv committed May 8, 2024
2 parents 7250c1a + 689cbd8 commit 84662f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blockchain/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ func (c *Client) StartEventsListening(
continue
}

meta, err := c.RPC.State.GetMetadata(set.Block)
if err != nil {
c.errsListening <- fmt.Errorf("get metadata: %w", err)
return
}

for _, change := range set.Changes {
if !codec.Eq(change.StorageKey, key) || !change.HasStorageData {
continue
Expand Down

0 comments on commit 84662f7

Please sign in to comment.