Skip to content

Commit

Permalink
setId changes logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Nov 15, 2024
1 parent 8311546 commit 2d17449
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 15 deletions.
5 changes: 5 additions & 0 deletions dot/state/grandpa.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ func (s *GrandpaState) ApplyScheduledChanges(finalizedHeader *types.Header) erro
logger.Debugf("applying scheduled change: %s", changeToApply.change)

newSetID, err := s.IncrementSetID()

logger.Debugf("scheduled change applied new set id: %d", newSetID)

if err != nil {
return fmt.Errorf("cannot increment set id: %w", err)
}
Expand Down Expand Up @@ -254,6 +257,8 @@ func (s *GrandpaState) ApplyForcedChanges(importedBlockHeader *types.Header) err
}

newSetID, err := s.IncrementSetID()

logger.Debugf("forced change applied new set id: %s", newSetID)
if err != nil {
return fmt.Errorf("cannot increment set id: %w", err)
}
Expand Down
Loading

0 comments on commit 2d17449

Please sign in to comment.