mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 14:01:06 +00:00
backend: Don't remove block hashes on inspection
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -539,12 +539,11 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
|
|||||||
// If we have a finalized hash, we are done looking for tx events and we are just waiting
|
// If we have a finalized hash, we are done looking for tx events and we are just waiting
|
||||||
// for a pinned block with a matching hash (which must appear eventually given it's finalized).
|
// for a pinned block with a matching hash (which must appear eventually given it's finalized).
|
||||||
if let Some(hash) = &finalized_hash {
|
if let Some(hash) = &finalized_hash {
|
||||||
if let Some((SeenBlockMarker::Finalized, block_ref)) = seen_blocks.remove(hash)
|
if let Some((SeenBlockMarker::Finalized, block_ref)) = seen_blocks.get(hash) {
|
||||||
{
|
|
||||||
// Found it! Hand back the event with a pinned block. We're done.
|
// Found it! Hand back the event with a pinned block. We're done.
|
||||||
done = true;
|
done = true;
|
||||||
let ev = TransactionStatus::InFinalizedBlock {
|
let ev = TransactionStatus::InFinalizedBlock {
|
||||||
hash: block_ref.into(),
|
hash: block_ref.clone().into(),
|
||||||
};
|
};
|
||||||
return Poll::Ready(Some(Ok(ev)));
|
return Poll::Ready(Some(Ok(ev)));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user