Reduce Westend deposit requirements (#1341)

* Switch branch

* Return chain ops parts in new_chain_ops

* Remove where param from new_chain_ops

* Add task manager to new_chain_ops return

* Revert branch switch

* Revert "Revert branch switch"

This reverts commit 7c7900c047abd794ddc759aa092811db4961a7a6.

* network/test/src/lib: Adjust network worker polling

Companion for https://github.com/paritytech/substrate/pull/6552.

* Fix adder parachain

* Fix collator tests

* Revert branch switch

* Bump everything

- Remove old migration code
- Reduce deposit requried for westend

* Reapply fixes

* Bump locl

* Fix for #6550

* Fix message

Co-authored-by: Ashley Ruglys <ashley.ruglys@gmail.com>
Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
Gavin Wood
2020-07-03 15:35:36 +02:00
committed by GitHub
parent e7bb3aef39
commit 79954ae589
34 changed files with 299 additions and 222 deletions
@@ -43,6 +43,7 @@ use sp_api::{ProvideRuntimeApi, ApiExt};
use runtime_primitives::traits::HashFor;
use availability_store::Store as AvailabilityStore;
use ansi_term::Colour;
use log::{warn, error, info, debug, trace};
use super::{Network, Collators, SharedTable, TableRouter};
@@ -373,12 +374,18 @@ impl<N, P, SP, CF> ParachainValidationInstances<N, P, SP, CF> where
sign_with.as_ref().map(|k| k.public()),
)?;
info!(
"Starting parachain attestation session on top of parent {:?}. Local parachain duty is {:?}",
parent_hash,
local_duty,
);
if let Some(ref duty) = local_duty {
info!(
"✍️ Starting parachain attestation session (parent: {}) with active duty {}",
parent_hash,
Colour::Red.bold().paint(format!("{:?}", duty)),
);
} else {
debug!(
"✍️ Starting parachain attestation session (parent: {}). No local duty..",
parent_hash,
);
}
let active_parachains = self.client.runtime_api().active_parachains(&id)?;
debug!(target: "validation", "Active parachains: {:?}", active_parachains);