From e85d7a4ba776ec7bf82753ec16d0c2f3996142e2 Mon Sep 17 00:00:00 2001 From: Nikolay Volf <nikvolf@gmail.com> Date: Wed, 25 Mar 2020 05:03:58 -0700 Subject: [PATCH] Fix propagation in network (#5395) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix propagation in network * Update client/service/src/lib.rs Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * fix suggestion Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> --- substrate/client/service/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/substrate/client/service/src/lib.rs b/substrate/client/service/src/lib.rs index 0a7d5ff103f..74f6ee4917d 100644 --- a/substrate/client/service/src/lib.rs +++ b/substrate/client/service/src/lib.rs @@ -648,7 +648,11 @@ where } 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 } + ) } } -- GitLab