src/Stratis.Features.FederatedPeg/TargetChain/CrossChainTransferStore.cs
/// <summary>Updates the status lookup based on a transfer and its previous status.</summary>
/// <param name="transfer">The cross-chain transfer that was update.</param>
/// <param name="oldStatus">The old status.</param>
Updates the status lookup based on a transfer and its previous status.
Updates the status lookup based on a transfer and its previous status .
private void TransferStatusUpdated(ICrossChainTransfer transfer, CrossChainTransferStatus? oldStatus)
        {
            if (oldStatus != null)
            {
                this.depositsIdsByStatus[(CrossChainTransferStatus)oldStatus].Remove(transfer.DepositTransactionId);
            }
            this.depositsIdsByStatus[transfer.Status].Add(transfer.DepositTransactionId);
        }
private void TransferStatusUpdated ( ICrossChainTransfer transfer , CrossChainTransferStatus ? oldStatus ) { if ( oldStatus != null ) { this . depositsIdsByStatus [ ( CrossChainTransferStatus ) oldStatus ] . Remove ( transfer . DepositTransactionId ) ; } this . depositsIdsByStatus [ transfer . Status ] . Add ( transfer . DepositTransactionId ) ; }
Updates the status lookup based on a transfer and its previous status.
Updates the status lookup based on a transfer and its previous status .
transfer
ICrossChainTransfer
The cross-chain transfer that was update.
The cross - chain transfer that was update .
oldStatus
CrossChainTransferStatus?
The old status.
The old status .