Пример #1
0
        public SmartCoin(OutPoint outPoint, TxOut txOut, OutPoint[] spentOutputs, uint height, bool replaceable, uint256 spenderTransactionId, HDPubKey pubKey)
        {
            OutPoint = outPoint;
            TxOut    = txOut;

            Height                 = height;
            SpentOutputs           = spentOutputs;
            IsReplaceable          = replaceable;
            IsLikelyCoinJoinOutput = false;
            SpenderTransactionId   = spenderTransactionId;

            AnonymitySet = 1;
            HDPubKey     = pubKey;
        }
Пример #2
0
 public SmartCoin(SmartTransaction stx, uint index, HDPubKey pubKey)
     : this(new OutPoint(stx.Transaction, index), stx.Outputs[index], stx.Inputs.Select(i => i.PrevOut).ToArray(), stx.Height, stx.IsRBF, uint256.Zero, pubKey)
 {
 }