From 19b67cd93b56396e8921b5227add3f7de18c60f4 Mon Sep 17 00:00:00 2001 From: h4x3rotab Date: Mon, 10 Feb 2020 16:26:09 +0800 Subject: [PATCH] Export GRANDPA AuthorityPair when full_crypto is enabled (#4872) * Export crypto_full feature in primitives/finality-grandpa * Export GRANDPA AuthorityPair when full_crypto is enabled --- primitives/finality-grandpa/Cargo.toml | 3 +++ primitives/finality-grandpa/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/primitives/finality-grandpa/Cargo.toml b/primitives/finality-grandpa/Cargo.toml index dfa6b572d8f72..6498763e4c72c 100644 --- a/primitives/finality-grandpa/Cargo.toml +++ b/primitives/finality-grandpa/Cargo.toml @@ -23,3 +23,6 @@ std = [ "sp-api/std", "sp-runtime/std", ] +full_crypto = [ + "app-crypto/full_crypto" +] diff --git a/primitives/finality-grandpa/src/lib.rs b/primitives/finality-grandpa/src/lib.rs index f1481c0aed4e5..98fce4508156c 100644 --- a/primitives/finality-grandpa/src/lib.rs +++ b/primitives/finality-grandpa/src/lib.rs @@ -34,7 +34,7 @@ mod app { } /// The grandpa crypto scheme defined via the keypair type. -#[cfg(feature = "std")] +#[cfg(any(feature = "std", feature = "full_crypto"))] pub type AuthorityPair = app::Pair; /// Identity of a Grandpa authority.