src/Stratis.FederatedPeg.Features.FederationGateway/Wallet/FederationWalletTransactionHandler.cs
/// <summary>
/// Add extra unspendable output to the transaction if there is anything in OpReturnData.
/// </summary>
/// <param name="context">The context associated with the current transaction being built.</param>
Add extra unspendable output to the transaction if there is anything in OpReturnData.
Add extra unspendable output to the transaction if there is anything in OpReturnData .
private void AddOpReturnOutput(TransactionBuildContext context)
        {
            if (context.OpReturnData == null) return;
            Script opReturnScript = TxNullDataTemplate.Instance.GenerateScriptPubKey(context.OpReturnData);
            context.TransactionBuilder.Send(opReturnScript, Money.Zero);
        }
private void AddOpReturnOutput ( TransactionBuildContext context ) { if ( context . OpReturnData == null ) return ; Script opReturnScript = TxNullDataTemplate . Instance . GenerateScriptPubKey ( context . OpReturnData ) ; context . TransactionBuilder . Send ( opReturnScript , Money . Zero ) ; }
Add extra unspendable output to the transaction if there is anything in OpReturnData.
Add extra unspendable output to the transaction if there is anything in OpReturnData .
context
TransactionBuildContext
The context associated with the current transaction being built.
The context associated with the current transaction being built .