Fix asynchronous transaction rejections. (#3817)

* Fix handling transaction pool errors.

* Add test.

* Review suggestions.
This commit is contained in:
Tomasz Drwięga authored and Bastian Köcher committed 2019-10-15 11:16:10 +02:00
1 parent ed449bf415
commit 9fe8ee4197
4 files changed
+73 -41

No files matched your search

@@ -66,7 +66,7 @@ pub trait ChainApi: Send + Sync {
/// Error type.
type Error: From<error::Error> + error::IntoPoolError;
/// Validate transaction future.
type ValidationFuture: Future<Output=Result<TransactionValidity, Self::Error>> + Send;
type ValidationFuture: Future<Output=Result<TransactionValidity, Self::Error>> + Send + Unpin;
/// Verify extrinsic at given block.
fn validate_transaction(