Skip to content

walletrpc SendOutputs fails to attach zero value outputs #5203

Open
@alexbosworth

Description

@alexbosworth

Background

When sending a transaction to specific output scripts using SendOutputs in walletrpc, specifying output values that are 0 results in an invalid transaction that gets rejected on broadcast due to it being formed without inputs.

Zero value outputs are valid by consensus rules and standard by p2p policy rules when used with an OP_RETURN output script.

Your environment

  • lnd 0.12.1-beta

Steps to reproduce

Using a wallet with on-chain funds, send funds using SendOutputs specifying a 0-value OP_RETURN

Expected behavior

The 0 value single output should be created and sent

Actual behavior

An error is returned from the chain daemon indicating an invalid transaction was received transaction has no inputs

Specifying a value of 1 for the OP_RETURN will result in a successful transaction

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4low priobeginnerIssues suitable for new developersenhancementImprovements to existing features / behaviourfeature requestRequests for new featureshelp wantedpolicywalletThe wallet (lnwallet) which LND uses

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions