Skip to content

Commit

Permalink
Remove unnused linter comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Dec 19, 2024
1 parent b3ecba8 commit a1b63c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dot/sync/warp_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (w *WarpSyncStrategy) OnBlockAnnounce(from peer.ID, msg *network.BlockAnnou
}

if msg.BestBlock {
w.peers.update(from, blockAnnounceHeaderHash, uint32(msg.Number)) //nolint:gosec
w.peers.update(from, blockAnnounceHeaderHash, uint32(msg.Number))
}

return &Change{
Expand Down
10 changes: 5 additions & 5 deletions lib/grandpa/warpsync/warp_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type GrandpaState interface {

type WarpSyncVerificationResult struct {
SetId grandpa.SetID
AuthorityList primitives.AuthorityList
AuthorityList grandpa.AuthorityList
Header types.Header
Completed bool
}
Expand Down Expand Up @@ -188,7 +188,7 @@ type SetIdAuthorityList struct {
grandpa.AuthorityList
}

func (p *WarpSyncProofProvider) CurrentAuthorities() (primitives.AuthorityList, error) {
func (p *WarpSyncProofProvider) CurrentAuthorities() (grandpa.AuthorityList, error) {
currentSetid, err := p.grandpaState.GetCurrentSetID()
if err != nil {
return nil, err
Expand All @@ -199,16 +199,16 @@ func (p *WarpSyncProofProvider) CurrentAuthorities() (primitives.AuthorityList,
return nil, err
}

var authorityList primitives.AuthorityList
var authorityList grandpa.AuthorityList
for _, auth := range authorities {
key, err := app.NewPublic(auth.Key[:])
if err != nil {
return nil, err
}

authorityList = append(authorityList, primitives.AuthorityIDWeight{
authorityList = append(authorityList, grandpa.AuthorityIDWeight{
AuthorityID: key,
AuthorityWeight: primitives.AuthorityWeight(auth.ID),
AuthorityWeight: grandpa.AuthorityWeight(auth.ID),
})
}

Expand Down

0 comments on commit a1b63c3

Please sign in to comment.