Skip to content

Commit

Permalink
make sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
iansuvak committed Jun 22, 2023
1 parent 5de753b commit 9db27dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions protocol/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

// ConsensusVersion is a string that identifies a version of the
// consensus protocol.
//
//msgp:allocbound ConsensusVersion maxConsensusVersionLen
type ConsensusVersion string

Expand Down
4 changes: 2 additions & 2 deletions protocol/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const (
// for the purposes of limiting the number of bytes read from the network.
// The calculations to obtain them are defined in node/TestMaxSizesCorrect()

//AgreementVoteTagMaxSize is the maximum size of an AgreementVoteTag message
// AgreementVoteTagMaxSize is the maximum size of an AgreementVoteTag message
const AgreementVoteTagMaxSize = 1228

// MsgOfInterestTagMaxSize is the maximum size of a MsgOfInterestTag message
Expand All @@ -68,7 +68,7 @@ const NetIDVerificationTagMaxSize = 215
// PingTagMaxSize is the maximum size of a PingTag message
const PingTagMaxSize = 8

//PingReplyTagMaxSize is the maximum size of a PingReplyTag message
// PingReplyTagMaxSize is the maximum size of a PingReplyTag message
const PingReplyTagMaxSize = 8

// ProposalPayloadTagMaxSize is the maximum size of a ProposalPayloadTag message
Expand Down
1 change: 1 addition & 0 deletions protocol/txntype.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package protocol
// in a block. They are used in the data/transaction package and the REST API.

// TxType is the type of the transaction written to the ledger
//
//msgp:allocbound TxType txTypeMaxLen
type TxType string

Expand Down
1 change: 1 addition & 0 deletions stateproof/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func (spw *Worker) Stop() {

// SortAddress implements sorting by Address keys for
// canonical encoding of maps in msgpack format.
//
//msgp:sort basics.Address SortAddress
type SortAddress = basics.SortAddress

Expand Down

0 comments on commit 9db27dd

Please sign in to comment.