Move proof generation to the type system level (#8185)

* Start

* Finish!!!!

* Update client/basic-authorship/src/basic_authorship.rs

Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>

* Review comments

Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
This commit is contained in:
Bastian Köcher
2021-02-24 21:43:50 +01:00
committed by GitHub
parent 3309c4366b
commit 8a0e8ea9a6
17 changed files with 230 additions and 121 deletions
@@ -193,13 +193,12 @@ mod tests {
use jsonrpc_core::{Notification, Output, types::Params};
use parity_scale_codec::{Encode, Decode};
use sc_block_builder::BlockBuilder;
use sc_block_builder::{BlockBuilder, RecordProof};
use sc_finality_grandpa::{
report, AuthorityId, GrandpaJustificationSender, GrandpaJustification,
FinalityProof,
};
use sp_blockchain::HeaderBackend;
use sp_consensus::RecordProof;
use sp_core::crypto::Public;
use sp_keyring::Ed25519Keyring;
use sp_runtime::traits::{Block as BlockT, Header as HeaderT};
@@ -438,7 +437,7 @@ mod tests {
&*client,
client.info().best_hash,
client.info().best_number,
RecordProof::Yes,
RecordProof::No,
Default::default(),
&*backend,
).unwrap().build().unwrap();