From c7d1fd28d27eef9b311b0fb95799ed033b9333f2 Mon Sep 17 00:00:00 2001 From: zjb0807 <zjb0807@qq.com> Date: Mon, 17 Aug 2020 06:31:27 +0800 Subject: [PATCH] authority add runtime-benchmarks (#248) --- authority/Cargo.toml | 2 ++ authority/src/lib.rs | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/authority/Cargo.toml b/authority/Cargo.toml index 5d404ab..8237dc3 100644 --- a/authority/Cargo.toml +++ b/authority/Cargo.toml @@ -36,3 +36,5 @@ std = [ "frame-system/std", "orml-traits/std", ] +runtime-benchmarks = [ +] diff --git a/authority/src/lib.rs b/authority/src/lib.rs index aac2506..9cb28cd 100644 --- a/authority/src/lib.rs +++ b/authority/src/lib.rs @@ -67,6 +67,11 @@ impl< } }) } + + #[cfg(feature = "runtime-benchmarks")] + fn successful_origin() -> O { + unimplemented!() + } } /// Origin for the authority module. -- GitLab