GrandpaJustification: Feature gate Debug (#12664)

The grandpa crate is deriving `Debug` only when the `std` feature is enabled. `RuntimeDebug` can be
forced to derive `Debug` also in `no_std` and that doesn't work together. So, we should feature gate
`Debug` on `no_std`.
This commit is contained in:
Bastian Köcher
2022-11-09 23:05:13 +01:00
committed by GitHub
parent da46ab18ec
commit ef0cc330ce
@@ -129,7 +129,8 @@ pub type CompactCommit<Header> = grandpa::CompactCommit<
///
/// This is meant to be stored in the db and passed around the network to other
/// nodes, and are used by syncing nodes to prove authority set handoffs.
#[derive(Clone, Encode, Decode, PartialEq, Eq, RuntimeDebug)]
#[derive(Clone, Encode, Decode, PartialEq, Eq)]
#[cfg_attr(feature = "std", derive(Debug))]
pub struct GrandpaJustification<Header: HeaderT> {
pub round: u64,
pub commit: Commit<Header>,