Skip to content
Snippets Groups Projects
Commit e85d7a4b authored by Nikolay Volf's avatar Nikolay Volf Committed by GitHub
Browse files

Fix propagation in network (#5395)


* fix propagation in network

* Update client/service/src/lib.rs

Co-Authored-By: default avatarBastian Köcher <bkchr@users.noreply.github.com>

* fix suggestion

Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
parent e61ca13c
No related merge requests found
...@@ -648,7 +648,11 @@ where ...@@ -648,7 +648,11 @@ where
} }
fn transaction(&self, hash: &H) -> Option<B::Extrinsic> { fn transaction(&self, hash: &H) -> Option<B::Extrinsic> {
self.pool.ready_transaction(hash).map(|tx| tx.data().clone()) self.pool.ready_transaction(hash)
.and_then(
// Only propagable transactions should be resolved for network service.
|tx| if tx.is_propagable() { Some(tx.data().clone()) } else { None }
)
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment