Skip to content

Commit

Permalink
Update base_layer/core/src/proof_of_work/monero_rx/fixed_array.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Stan Bondi <sdbondi@users.noreply.github.com>
  • Loading branch information
SWvheerden and sdbondi authored Aug 19, 2022
1 parent 0941907 commit 6149a48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base_layer/core/src/proof_of_work/monero_rx/fixed_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ impl ConsensusDecoding for FixedByteArray {

impl ConsensusEncoding for FixedByteArray {
fn consensus_encode<W: Write>(&self, writer: &mut W) -> Result<(), io::Error> {
writer.write_all(&[self.len][..])?;
writer.write_all(&self.elems[0..self.len()])?;
self.as_slice().consensus_decode(writer)?;
Ok(())
}
}
Expand Down

0 comments on commit 6149a48

Please sign in to comment.