mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Fix propagation in network (#5395)
* 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>
This commit is contained in:
@@ -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 }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user