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; }
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) { }