Skip to content

Commit

Permalink
wire-mix: couple more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Feb 22, 2024
1 parent 07a23d0 commit 807dbdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion wire/msgmixkeyexchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
// MaxMixKPCount is the maximum number of peers allowed together in a
// MaxMixPeers is the maximum number of peers allowed together in a
// single mix. This restricts the maximum dimensions of the slot
// reservation and XOR DC-net matrices and the maximum number of
// previous messages that may be referenced by mix messages.
Expand Down
5 changes: 0 additions & 5 deletions wire/msgmixsecrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@ func (msg *MsgMixSecrets) BtcDecode(r io.Reader, pver uint32) error {
if err != nil {
return err
}
if len(dcnetMsgs) > MaxMixMcount {
msg := fmt.Sprintf("too many total mixed messages [count %v, max %v]",
len(dcnetMsgs), MaxMixMcount)
return messageError(op, ErrInvalidMsg, msg)
}
msg.DCNetMsgs = dcnetMsgs

return nil
Expand Down

0 comments on commit 807dbdb

Please sign in to comment.