src/Stratis.Features.FederatedPeg/TargetChain/CrossChainTransferStore.cs
/// <summary>Undoes the transient lookups after block removals have been committed to the store.</summary>
/// <param name="tracker">Information about how to undo the lookups.</param>
Undoes the transient lookups after block removals have been committed to the store.
Undoes the transient lookups after block removals have been committed to the store .
private void UndoLookups(StatusChangeTracker tracker)
        {
            foreach (KeyValuePair<ICrossChainTransfer, CrossChainTransferStatus?> kv in tracker)
            {
                if (kv.Value == null)
                {
                    this.depositsIdsByStatus[kv.Key.Status].Remove(kv.Key.DepositTransactionId);
                }
                this.TransferStatusUpdated(kv.Key, kv.Value);
            }
            foreach (uint256 hash in tracker.UniqueBlockHashes())
            {
                this.depositIdsByBlockHash.Remove(hash);
                this.blockHeightsByBlockHash.Remove(hash);
            }
        }
private void UndoLookups ( StatusChangeTracker tracker ) { foreach ( KeyValuePair < ICrossChainTransfer , CrossChainTransferStatus ? > kv in tracker ) { if ( kv . Value == null ) { this . depositsIdsByStatus [ kv . Key . Status ] . Remove ( kv . Key . DepositTransactionId ) ; } this . TransferStatusUpdated ( kv . Key , kv . Value ) ; } foreach ( uint256 hash in tracker . UniqueBlockHashes ( ) ) { this . depositIdsByBlockHash . Remove ( hash ) ; this . blockHeightsByBlockHash . Remove ( hash ) ; } }
Undoes the transient lookups after block removals have been committed to the store.
Undoes the transient lookups after block removals have been committed to the store .
tracker
StatusChangeTracker
Information about how to undo the lookups.
Information about how to undo the lookups .