Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Kim <[email protected]>
  • Loading branch information
joshua-kim committed Nov 26, 2024
1 parent 5402145 commit 978cdde
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions x/dsmr/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,12 @@ func (n *Node[T]) BuildChunk(
return Chunk[T]{}, fmt.Errorf("failed to initialize warp message: %w", err)
}

validators := make([]warp.Validator, 0, len(n.validators))
validators := make([]acp118.Validator, 0, len(n.validators))
for _, v := range n.validators {
validators = append(validators, warp.Validator{
PublicKey: v.PublicKey,
PublicKeyBytes: bls.PublicKeyToCompressedBytes(v.PublicKey),
Weight: v.Weight,
NodeIDs: []ids.NodeID{v.NodeID},
validators = append(validators, acp118.Validator{
PublicKey: v.PublicKey,
Weight: v.Weight,
NodeID: v.NodeID,
})
}

Expand Down

0 comments on commit 978cdde

Please sign in to comment.