コード例 #1
0
 /// <summary>
 /// Adds the given output to this transaction. The output must be completely initialized.
 /// </summary>
 public void AddOutput(TransactionOutput to)
 {
     to.ParentTransaction = this;
     _outputs.Add(to);
 }
コード例 #2
0
 /// <summary>
 /// Adds an input to this transaction that imports value from the given output. Note that this input is NOT
 /// complete and after every input is added with addInput() and every output is added with addOutput(),
 /// signInputs() must be called to finalize the transaction and finish the inputs off. Otherwise it won't be
 /// accepted by the network.
 /// </summary>
 public void AddInput(TransactionOutput from)
 {
     AddInput(new TransactionInput(this, from.ReadHash(), from.Index, P2PNetParameters));
 }