mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-13 14:17:08 +00:00
Cleanups (#1933)
* Introduce CollatorFn type alias * Make test-runtime imports consistent with rococo-runtime * Update node/primitives/src/lib.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * fix warnings Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
1 parent
83661eb8dc
commit
2026228b77
5 files changed
+56
-43
No files matched your search
@@ -32,12 +32,16 @@ pub struct Collation {
|
||||
pub proof_of_validity: PoV,
|
||||
}
|
||||
|
||||
type CollatorFn = Box<
|
||||
dyn Fn(Hash, &ValidationData) -> Pin<Box<dyn Future<Output = Option<Collation>>>>
|
||||
>;
|
||||
|
||||
struct CollationGenerationConfig {
|
||||
key: CollatorPair,
|
||||
/// Collate will be called with the relay chain hash the parachain should build
|
||||
/// Collate will be called with the relay chain hash the parachain should build
|
||||
/// a block on and the `ValidationData` that provides information about the state
|
||||
/// of the parachain on the relay chain.
|
||||
collator: Box<dyn Fn(Hash, &ValidationData) -> Pin<Box<dyn Future<Output = Option<Collation>>>>>
|
||||
collator: CollatorFn,
|
||||
para_id: ParaId,
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user