Skip to content

Commit

Permalink
derive type info for some grandpa types (paritytech#12683)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjhmelody authored and ark0f committed Feb 27, 2023
1 parent f49b807 commit 2767de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions primitives/finality-grandpa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ 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)]
#[derive(Clone, Encode, Decode, PartialEq, Eq, TypeInfo)]
#[cfg_attr(feature = "std", derive(Debug))]
pub struct GrandpaJustification<Header: HeaderT> {
pub round: u64,
Expand All @@ -139,7 +139,7 @@ pub struct GrandpaJustification<Header: HeaderT> {

/// A scheduled change of authority set.
#[cfg_attr(feature = "std", derive(Serialize))]
#[derive(Clone, Eq, PartialEq, Encode, Decode, RuntimeDebug)]
#[derive(Clone, Eq, PartialEq, Encode, Decode, RuntimeDebug, TypeInfo)]
pub struct ScheduledChange<N> {
/// The new authorities after the change, along with their respective weights.
pub next_authorities: AuthorityList,
Expand Down

0 comments on commit 2767de5

Please sign in to comment.