Remove light client companion (#4191)

* Remove light client companion

* Update substrate

* cargo fmt

* Fixed benches

* fmt
This commit is contained in:
Arkadiy Paronyan
2021-11-12 15:07:33 +01:00
committed by GitHub
parent ea16b72e0b
commit 4354b6482e
10 changed files with 190 additions and 310 deletions
@@ -16,8 +16,9 @@
use super::*;
use frame_benchmarking::benchmarks;
use frame_system::{DigestItemOf, RawOrigin};
use frame_system::RawOrigin;
use primitives::v1::ConsensusLog;
use sp_runtime::DigestItem;
// Random large number for the digest
const DIGEST_MAX_LEN: u32 = 65536;
@@ -32,7 +33,7 @@ benchmarks! {
verify {
assert_eq!(
<frame_system::Pallet<T>>::digest().logs.last().unwrap(),
&<DigestItemOf<T>>::from(ConsensusLog::ForceApprove(d + 1)),
&DigestItem::from(ConsensusLog::ForceApprove(d + 1)),
);
}