Пример #1
0
 internal void PushEntry(WalletEntry entry)
 {
     if (entry.Type == WalletEntryType.Income)
     {
         var spendable = entry.GetSpendable();
         PushAccountEntry(entry.Block, spendable, spendable.TxOut.Value);
     }
     else if (entry.Type == WalletEntryType.Outcome)
     {
         if (_Unspent.ContainsKey(entry.OutPoint))
         {
             var spendable = _Unspent[entry.OutPoint];
             PushAccountEntry(entry.Block, spendable, -spendable.TxOut.Value);
         }
     }
 }
Пример #2
0
 internal void PushEntry(WalletEntry entry)
 {
     if(entry.Type == WalletEntryType.Income)
     {
         var spendable = entry.GetSpendable();
         PushAccountEntry(entry.Block, spendable, spendable.TxOut.Value);
     }
     else if(entry.Type == WalletEntryType.Outcome)
     {
         if(_Unspent.ContainsKey(entry.OutPoint))
         {
             var spendable = _Unspent[entry.OutPoint];
             PushAccountEntry(entry.Block, spendable, -spendable.TxOut.Value);
         }
     }
 }