/// <summary> /// If scriptpubkey is already present, just add the value. /// </summary> public static void AddRangeWithOptimize(this TxOutList me, IEnumerable <TxOut> collection) { foreach (var txout in collection) { me.AddWithOptimize(txout); } }
/// <summary> /// If scriptpubkey is already present, just add the value. /// </summary> public static void AddWithOptimize(this TxOutList me, TxOut txOut) { me.AddWithOptimize(txOut.Value, txOut.ScriptPubKey); }
/// <summary> /// If scriptpubkey is already present, just add the value. /// </summary> public static void AddWithOptimize(this TxOutList me, Money money, IDestination destination) { me.AddWithOptimize(money, destination.ScriptPubKey); }