mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 13:21:01 +00:00
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:
@@ -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
|
/// 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.
|
/// 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 struct GrandpaJustification<Header: HeaderT> {
|
||||||
pub round: u64,
|
pub round: u64,
|
||||||
pub commit: Commit<Header>,
|
pub commit: Commit<Header>,
|
||||||
|
|||||||
Reference in New Issue
Block a user