Oli
Oli
Correct, the new behavior only triggers via the new `lncli wallet psbt fundtemplate` command (which corresponds to the new `coin_select` field in the `FundPsbt` RPC). I didn't want to break...
Fixed by https://github.com/lightningnetwork/lnd/pull/8378.
You need to specify `Template: &walletrpc.FundPsbtRequest_CoinSelect` instead of `_Raw`. See the example in the integration test: https://github.com/lightningnetwork/lnd/blob/036a5a946cfe668199855c66c1ccb2735386d1dd/itest/lnd_psbt_test.go#L1246 The easiest way to create the template PSBT is probably to create it...
https://github.com/lightningnetwork/lnd/blob/9f9d1c9e0b03fdaef9daec634a72f773e69be1ec/itest/lnd_psbt_test.go#L1080-L1098 (minus the second output of course) And then this: ``` var buf bytes.Buffer err := packet.Serialize(&buf) require.NoError(t, err) cs := &walletrpc.PsbtCoinSelect{ Psbt: buf.Bytes(), ChangeOutput = &walletrpc.PsbtCoinSelect_ExistingOutputIndex{ ExistingOutputIndex: 0, }...
I think you can achieve what you want in one step by specifying the input you want and using 0 as the output amount, using the `ExistingOutputIndex: 0`.
@joostjager I found the problem for https://github.com/lightningnetwork/lnd/issues/6434 today. Turned out that when sending funds to a P2WKH address that was created from the pubkey returned by `walletrpc.DeriveKey` or `walletrpc.DeriveNextKey` (so...
Hmm, okay. What's the state of this transaction at the moment? Did it eventually correct itself or is the UTXO still being listed as unspent?
So the UTXO shows for address `bc1qa......vzjaq`? Can you check if that is an address from the default scope please? `lncli wallet addresses` should help you there. Was the wallet...
> `lncli wallet addresses` doesn't look like an existing command? Ah, right, that's only on master, sorry... Would've been useful here. I do have a suspicion why it happened. But...
@C-Otto are either of these two transactions confirmed yet? I think one of them will go away if the other one confirms (making this a slightly different case than the...