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

View File

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