mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Adder collator improvements (#1896)
* Fixes bug that collator wasn't sending `Declare` message * Set authority discovery config * Fixes bug that collator wasn't sending `Declare` message * Adds real overseer feature and makes the wasm_validation fail with a proper error * Adds README * Remove debug stuff * Add feature * Make adder collator use the correct parent when building a new block
This commit is contained in:
@@ -23,6 +23,7 @@ use polkadot_node_primitives::CollationGenerationConfig;
|
||||
use polkadot_primitives::v1::{CollatorPair, Id as ParaId};
|
||||
use test_parachain_adder_collator::Collator;
|
||||
use sp_core::{Pair, hexdisplay::HexDisplay};
|
||||
use std::time::Duration;
|
||||
|
||||
const PARA_ID: ParaId = ParaId::new(100);
|
||||
|
||||
@@ -47,6 +48,11 @@ fn main() -> Result<()> {
|
||||
config,
|
||||
polkadot_service::IsCollator::Yes(collator_key.public()),
|
||||
None,
|
||||
Some(sc_authority_discovery::WorkerConfig {
|
||||
query_interval: Duration::from_secs(1),
|
||||
query_start_delay: Duration::from_secs(0),
|
||||
..Default::default()
|
||||
}),
|
||||
)?;
|
||||
let mut overseer_handler = full_node.overseer_handler
|
||||
.expect("Overseer handler should be initialized for collators");
|
||||
|
||||
Reference in New Issue
Block a user