Merge branch 'master' of github.com:paritytech/parity into upload-crates

This commit is contained in:
Robert Habermeier
2017-11-10 18:42:18 +01:00
26 changed files with 397 additions and 1186 deletions

View File

@@ -321,6 +321,11 @@ impl TransactionQueue {
self.by_hash.remove(&hash);
}
}
/// Get a transaction by hash.
pub fn get(&self, hash: &H256) -> Option<&PendingTransaction> {
self.by_hash.get(&hash)
}
}
#[cfg(test)]