BitSharper.Wallet.MaybeMoveTxToSpent C# (CSharp) Méthode

MaybeMoveTxToSpent() private méthode

If the transactions outputs are all marked as spent, and it's in the unspent map, move it.
private MaybeMoveTxToSpent ( Transaction tx, String context ) : void
tx Transaction
context String
Résultat void
        private void MaybeMoveTxToSpent(Transaction tx, String context)
        {
            if (tx.IsEveryOutputSpent())
            {
                // There's nothing left I can spend in this transaction.
                if (Unspent.Remove(tx.Hash))
                {
                    if (_log.IsInfoEnabled)
                    {
                        _log.Info("  " + context + " <-unspent");
                        _log.Info("  " + context + " ->spent");
                    }
                    Spent[tx.Hash] = tx;
                }
            }
        }