Skip to content

Commit

Permalink
Fix mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
nyonson committed May 15, 2024
1 parent 77caab4 commit db3fb56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion protocol/src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ pub fn deserialize(buffer: &[u8]) -> Result<NetworkMessage, Error> {
}
26u8 => {
let mut payload_buffer = &buffer[1..];
Ok(NetworkMessage::GetCFilters(
Ok(NetworkMessage::GetCFCheckpt(
Decodable::consensus_decode(&mut payload_buffer).map_err(|_| Error::Deserialize)?,
))
}
Expand Down
1 change: 0 additions & 1 deletion proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ pub async fn write_v1<T: AsyncWrite + Unpin>(
let mut buffer = vec![];
raw.consensus_encode(&mut buffer)
.map_err(|_| Error::Serde)?;

output.write_all(&buffer).await?;
Ok(())
}
Expand Down

0 comments on commit db3fb56

Please sign in to comment.