Skip to content

Commit

Permalink
fix: reduce the noise protocol length to the specced value
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaslong committed Sep 25, 2023
1 parent 41cbe27 commit 785b4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/narwhal/events/src/helpers/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl<N: Network> Decoder for EventCodec<N> {
/* NOISE CODEC */

// The maximum message size for noise messages. If the data to be encrypted exceedes it, it is chunked.
const MAX_MESSAGE_LEN: usize = 100 * 65535;
const MAX_MESSAGE_LEN: usize = 65535;

#[derive(Clone, Debug, PartialEq, Eq)]
pub enum EventOrBytes<N: Network> {
Expand Down

0 comments on commit 785b4de

Please sign in to comment.