Compare commits

...

1 Commits

Author SHA1 Message Date
Riccardo Casatta
85389ccaa0
Update client.rs
Use generic for batch_transaction_get
2020-03-12 20:35:32 +01:00

View File

@ -595,10 +595,7 @@ impl<S: Read + Write> Client<S> {
/// Batch version of [`transaction_get`](#method.transaction_get).
///
/// Takes a list of `txids` and returns a list of transactions.
pub fn batch_transaction_get<'t, I>(
&mut self,
txids: Vec<&Txid>,
) -> Result<Vec<Transaction>, Error>
pub fn batch_transaction_get<'t, I>(&mut self, txids: I) -> Result<Vec<Transaction>, Error>
where
I: IntoIterator<Item = &'t Txid>,
{