Lnd: unconfirmed tx, no `dest_addresses` with bitcoind

Created on 9 Jan 2019  路  2Comments  路  Source: lightningnetwork/lnd

Background

I have lnd connected to a bitcoind fullnode.
Unconfirmed transactions do not have any dest_addresses.

So i have no way to tell which unconfirmed payment belongs to which address.
I don't know if this is the same for btcd fullnodes.

Your environment

  • lnd version 0.5.1-beta commit=v0.5.1-beta-154-g71444e74acc9896d31205bd16b70fd0f85fc691b
  • Linux btc 4.15.0-42-generic #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • Bitcoin Core Daemon version v0.17.0.0-ge1ed37edaedc85b8c3468bd9a726046344036243

Steps to reproduce

$ lncli newaddress p2wkh
{
    "address": "tb1qd2fsgxldz40cuzs5wfdlatujudjlwlsyy5uxzl"
}

Send btc to that address.

$ lncli listchaintxns
     ...},
        {
            "tx_hash": "4a5797233bf6d43573568dcea7f23caeb29a48a26e6ffac6e61d66543bde3d47",
            "amount": "100000",
            "num_confirmations": 0,
            "block_hash": "",
            "block_height": 0,
            "time_stamp": "1547047478",
            "total_fees": "0",
            "dest_addresses": [
            ]
        }
    ]
}

Wait 10 minutes for the first confirmation

$ lncli listchaintxns
     ...},
        {
            "tx_hash": "4a5797233bf6d43573568dcea7f23caeb29a48a26e6ffac6e61d66543bde3d47",
            "amount": "100000",
            "num_confirmations": 1,
            "block_hash": "000000000014c64124fdce7cc4f49cf18db1e48788ec1b05a3e985b6fad8720c",
            "block_height": 1451661,
            "time_stamp": "1547048177",
            "total_fees": "0",
            "dest_addresses": [
                "msCLtVFL7isVMjEkg4HdAU7smYDFdoxtQu",
                "tb1qd2fsgxldz40cuzs5wfdlatujudjlwlsyy5uxzl"
            ]
        }
    ]
}

Expected behaviour

dest_addresses should be available for unconfirmed transactions.
that would make accepting on-chain payments much simpler.

Actual behaviour

dest_addresses are only available once the transaction has 1 confirmation.

P3 bug wallet

Most helpful comment

I'd be happy to pick this one up

All 2 comments

I'd be happy to pick this one up

Was this page helpful?
0 / 5 - 0 ratings