mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 07:01:05 +00:00
* Revert "Build block without checking signatures (#4916)"
This reverts commit e50f610907.
* Some further clean ups
This commit is contained in:
@@ -24,17 +24,13 @@ use sp_inherents::{InherentData, CheckInherentsResult};
|
||||
|
||||
sp_api::decl_runtime_apis! {
|
||||
/// The `BlockBuilder` api trait that provides the required functionality for building a block.
|
||||
#[api_version(5)]
|
||||
#[api_version(4)]
|
||||
pub trait BlockBuilder {
|
||||
/// Apply the given extrinsic.
|
||||
///
|
||||
/// Returns an inclusion outcome which specifies if this extrinsic is included in
|
||||
/// this block or not.
|
||||
fn apply_extrinsic(extrinsic: <Block as BlockT>::Extrinsic) -> ApplyExtrinsicResult;
|
||||
/// Apply the given extrinsic.
|
||||
///
|
||||
/// Same as `apply_extrinsic`, but skips signature verification.
|
||||
fn apply_trusted_extrinsic(extrinsic: <Block as BlockT>::Extrinsic) -> ApplyExtrinsicResult;
|
||||
/// Finish the current block.
|
||||
#[renamed("finalise_block", 3)]
|
||||
fn finalize_block() -> <Block as BlockT>::Header;
|
||||
|
||||
Reference in New Issue
Block a user