Skip to content

Commit

Permalink
fix: increase the noise ld codec frame length
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaslong authored and joske committed Feb 20, 2024
1 parent b72d45b commit 467d322
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node/bft/events/src/helpers/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ pub struct NoiseCodec<N: Network> {

impl<N: Network> NoiseCodec<N> {
pub fn new(noise_state: NoiseState) -> Self {
Self { codec: LengthDelimitedCodec::new(), event_codec: EventCodec::default(), noise_state }
Self {
codec: LengthDelimitedCodec::builder().max_frame_length(MAX_EVENT_SIZE).little_endian().new_codec(),
event_codec: EventCodec::default(),
noise_state,
}
}
}

Expand Down

0 comments on commit 467d322

Please sign in to comment.