From 353e7a068f018c302058e5dee4b6e7f9c806f52c Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Fri, 21 Feb 2020 10:43:42 +0100 Subject: [PATCH] babe: directly using append_u64 in transcript instead of to_le_bytes (#5005) --- substrate/client/consensus/babe/src/authorship.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/client/consensus/babe/src/authorship.rs b/substrate/client/consensus/babe/src/authorship.rs index a3254d0fcb..a01ea63bbe 100644 --- a/substrate/client/consensus/babe/src/authorship.rs +++ b/substrate/client/consensus/babe/src/authorship.rs @@ -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 }