Skip to content

Commit 3a081a5

Browse files
committed
Improve docs
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
1 parent 46711b3 commit 3a081a5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

snow/validators/gvalidators/validator_state_client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616
pb "github.com/ava-labs/avalanchego/proto/pb/validatorstate"
1717
)
1818

19-
var (
20-
_ validators.State = (*Client)(nil)
21-
errFailedPublicKeyDecompress = errors.New("couldn't decompress public key")
19+
var (
20+
_ validators.State = (*Client)(nil)
21+
errFailedPublicKeyDecompress = errors.New("couldn't decompress public key")
2222
)
2323

2424
type Client struct {

snow/validators/gvalidators/validator_state_server.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ func (s *Server) GetValidatorSet(ctx context.Context, req *pb.GetValidatorSetReq
7070
}
7171
if vdr.PublicKey != nil {
7272
// This is a performance optimization to avoid the cost of compression
73-
// and key re-verification with PublicKeyToBytes. We can safely
74-
// assume that the BLS Public Keys are verified before being added
75-
// to the P-Chain.
73+
// from PublicKeyToBytes.
7674
vdrPB.PublicKey = vdr.PublicKey.Serialize()
7775
}
7876
resp.Validators[i] = vdrPB

0 commit comments

Comments
 (0)