Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Correct BEEFY Key Length (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier authored Feb 16, 2022
1 parent ddbb670 commit 24e421b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions node/runtime/pangolin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -961,8 +961,8 @@ fn transform_session_keys(v: AccountId, old: OldSessionKeys) -> SessionKeys {
let mut id = BeefyId::default();
let id_raw: &mut [u8] = id.as_mut();

id_raw.copy_from_slice(v.as_ref());
id_raw[0..4].copy_from_slice(b"beef");
id_raw[1..].copy_from_slice(v.as_ref());
id_raw[1..5].copy_from_slice(b"beef");

id
},
Expand Down
4 changes: 2 additions & 2 deletions node/runtime/pangoro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,8 @@ fn transform_session_keys(v: AccountId, old: OldSessionKeys) -> SessionKeys {
let mut id = BeefyId::default();
let id_raw: &mut [u8] = id.as_mut();

id_raw.copy_from_slice(v.as_ref());
id_raw[0..4].copy_from_slice(b"beef");
id_raw[1..].copy_from_slice(v.as_ref());
id_raw[1..5].copy_from_slice(b"beef");

id
},
Expand Down

0 comments on commit 24e421b

Please sign in to comment.