Skip to content
Snippets Groups Projects
Commit 353e7a06 authored by Wei Tang's avatar Wei Tang Committed by GitHub
Browse files

babe: directly using append_u64 in transcript instead of to_le_bytes (#5005)

parent e8871e03
No related merge requests found
......@@ -92,8 +92,8 @@ pub(super) fn make_transcript(
epoch: u64,
) -> Transcript {
let mut transcript = Transcript::new(&BABE_ENGINE_ID);
transcript.append_message(b"slot number", &slot_number.to_le_bytes());
transcript.append_message(b"current epoch", &epoch.to_le_bytes());
transcript.append_u64(b"slot number", slot_number);
transcript.append_u64(b"current epoch", epoch);
transcript.append_message(b"chain randomness", randomness);
transcript
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment