public NewTransactionMatchEvent(string cryptoCode, uint256 blockId, TrackedTransaction trackedTransaction, Repository.SavedTransaction savedTransaction)
 {
     TrackedTransaction = trackedTransaction;
     BlockId            = blockId;
     SavedTransaction   = savedTransaction;
     CryptoCode         = cryptoCode;
 }
            public TrackedTransaction Build()
            {
                var tx = new TrackedTransaction(new TrackedTransactionKey(_TransactionId, _BlockId, true), _Parent._TrackedSource)
                {
                    Inserted  = _TimeStamp,
                    FirstSeen = _TimeStamp
                };

                foreach (var input in _Inputs)
                {
                    tx.SpentOutpoints.Add(input.Coin.Outpoint);
                }
                foreach (var output in _Outputs)
                {
                    tx.ReceivedCoins.Add(output.Coin);
                }
                return(tx);
            }
Пример #3
0
 public ChildInsertUpdateQueryVisitor(TrackedTransaction transaction)
 {
     this.transaction = transaction;
 }
Пример #4
0
 private int GetColumnNumber(TrackedTransaction transaction)
 {
     return(transaction.Begin.StartLine == DynamicSqlStartLine
         ? transaction.Begin.StartColumn + DynamicSqlStartColumn
         : transaction.Begin.StartColumn);
 }