mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
frame-benchmarking-cli: Remove native dispatch requirement (#14474)
* frame-benchmarking-cli: Remove native dispatch requirement No need for this, we can just use the `WasmExecutor` directly. * Fixes * Pass benchmarking host functions * Ensure we can pass custom host functions
This commit is contained in:
@@ -1152,10 +1152,10 @@ where
|
||||
// Verification for imported blocks is skipped in two cases:
|
||||
// 1. When importing blocks below the last finalized block during network initial
|
||||
// synchronization.
|
||||
// 2. When importing whole state we don't calculate epoch descriptor, but rather
|
||||
// read it from the state after import. We also skip all verifications
|
||||
// because there's no parent state and we trust the sync module to verify
|
||||
// that the state is correct and finalized.
|
||||
// 2. When importing whole state we don't calculate epoch descriptor, but rather read it
|
||||
// from the state after import. We also skip all verifications because there's no
|
||||
// parent state and we trust the sync module to verify that the state is correct and
|
||||
// finalized.
|
||||
return Ok(block)
|
||||
}
|
||||
|
||||
|
||||
@@ -78,11 +78,11 @@ pub(crate) struct VoterOracle<B: Block> {
|
||||
///
|
||||
/// There are three voter states coresponding to three queue states:
|
||||
/// 1. voter uninitialized: queue empty,
|
||||
/// 2. up-to-date - all mandatory blocks leading up to current GRANDPA finalized:
|
||||
/// queue has ONE element, the 'current session' where `mandatory_done == true`,
|
||||
/// 2. up-to-date - all mandatory blocks leading up to current GRANDPA finalized: queue has ONE
|
||||
/// element, the 'current session' where `mandatory_done == true`,
|
||||
/// 3. lagging behind GRANDPA: queue has [1, N] elements, where all `mandatory_done == false`.
|
||||
/// In this state, everytime a session gets its mandatory block BEEFY finalized, it's
|
||||
/// popped off the queue, eventually getting to state `2. up-to-date`.
|
||||
/// In this state, everytime a session gets its mandatory block BEEFY finalized, it's popped
|
||||
/// off the queue, eventually getting to state `2. up-to-date`.
|
||||
sessions: VecDeque<Rounds<B>>,
|
||||
/// Min delta in block numbers between two blocks, BEEFY should vote on.
|
||||
min_block_delta: u32,
|
||||
|
||||
Reference in New Issue
Block a user