Update to Substrate master (#311)

* Best effort to bring up to date.

* Fix the executor stuff

* Update verisons.

* Finish fixing

* Final fixes and warnings.

* add some docs and bump Wasm versions

* Fix tests

* Fix final test
This commit is contained in:
Gavin Wood
2019-07-04 17:15:59 +02:00
committed by GitHub
parent 6377974ed7
commit 29ee4e8f3a
24 changed files with 808 additions and 625 deletions
+6 -3
View File
@@ -51,7 +51,6 @@ use primitives::{Pair, ed25519};
use runtime_primitives::{
traits::{ProvideRuntimeApi, Header as HeaderT, DigestFor}, ApplyError
};
use tokio::runtime::TaskExecutor;
use tokio::timer::{Delay, Interval};
use transaction_pool::txpool::{Pool, ChainApi as PoolChainApi};
@@ -62,10 +61,12 @@ use collation::CollationFetch;
use dynamic_inclusion::DynamicInclusion;
use inherents::InherentData;
use runtime_aura::timestamp::TimestampInherentData;
use log::{info, debug, warn, trace};
use log::{info, debug, warn, trace, error};
use ed25519::Public as AuthorityId;
type TaskExecutor = Arc<dyn futures::future::Executor<Box<dyn Future<Item = (), Error = ()> + Send>> + Send + Sync>;
pub use self::collation::{
validate_collation, validate_incoming, message_queue_root, egress_roots, Collators,
};
@@ -427,7 +428,9 @@ impl<C, N, P> ParachainValidation<C, N, P> where
.then(|_| Ok(()));
// spawn onto thread pool.
self.handle.spawn(cancellable_work);
if let Err(_) = self.handle.execute(Box::new(cancellable_work)) {
error!("Failed to spawn cancellable work task");
}
signal
}
}