walletrpc: serialize TXID not outpoint

The txid_str field of a locked UTXO's outpoint shouldn't contain the
output index but only the reverse order hex serialized transaction ID.
This commit is contained in:
Oliver Gugger 2020-10-05 11:26:24 +02:00
parent 8e9f37b0fc
commit 843efc324b
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -1048,7 +1048,7 @@ func (w *WalletKit) FundPsbt(_ context.Context,
Id: lock.lockID[:], Id: lock.lockID[:],
Outpoint: &lnrpc.OutPoint{ Outpoint: &lnrpc.OutPoint{
TxidBytes: lock.outpoint.Hash[:], TxidBytes: lock.outpoint.Hash[:],
TxidStr: lock.outpoint.String(), TxidStr: lock.outpoint.Hash.String(),
OutputIndex: lock.outpoint.Index, OutputIndex: lock.outpoint.Index,
}, },
Expiration: uint64(lock.expiration.Unix()), Expiration: uint64(lock.expiration.Unix()),