Skip to content
Snippets Groups Projects
Commit ed7930fb authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Transaction pool added missed comment (#6308)

parent 8034285d
Branches
No related merge requests found
......@@ -71,11 +71,8 @@ async fn batch_revalidate<Api: ChainApi>(
let validation_results = futures::future::join_all(
batch.into_iter().filter_map(|ext_hash| {
pool.validated_pool().ready_by_hash(&ext_hash).map(|ext| {
let api = api.clone();
async move {
api.validate_transaction(&BlockId::Number(at), ext.source, ext.data.clone())
.map(|validation_result| (validation_result, ext_hash.clone(), ext)).await
}
api.validate_transaction(&BlockId::Number(at), ext.source, ext.data.clone())
.map(move |validation_result| (validation_result, ext_hash, ext))
})
})
).await;
......
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