mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
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:
@@ -48,7 +48,7 @@ use sp_transaction_pool::{
|
||||
TransactionStatusStreamFor,
|
||||
TxHash,
|
||||
};
|
||||
use sp_consensus::{Environment, Proposer, RecordProof};
|
||||
use sp_consensus::{Environment, Proposer};
|
||||
|
||||
use crate::{
|
||||
common::SizeType,
|
||||
@@ -170,7 +170,6 @@ impl core::Benchmark for ConstructionBenchmark {
|
||||
inherent_data_providers.create_inherent_data().expect("Create inherent data failed"),
|
||||
Default::default(),
|
||||
std::time::Duration::from_secs(20),
|
||||
RecordProof::Yes,
|
||||
),
|
||||
).map(|r| r.block).expect("Proposing failed");
|
||||
|
||||
|
||||
@@ -478,7 +478,6 @@ mod tests {
|
||||
use sc_consensus_epochs::descendent_query;
|
||||
use sp_consensus::{
|
||||
Environment, Proposer, BlockImportParams, BlockOrigin, ForkChoiceStrategy, BlockImport,
|
||||
RecordProof,
|
||||
};
|
||||
use node_primitives::{Block, DigestItem, Signature};
|
||||
use node_runtime::{BalancesCall, Call, UncheckedExtrinsic, Address};
|
||||
@@ -611,7 +610,6 @@ mod tests {
|
||||
inherent_data,
|
||||
digest,
|
||||
std::time::Duration::from_secs(1),
|
||||
RecordProof::Yes,
|
||||
).await
|
||||
}).expect("Error making test block").block;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user