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:
parent
8e9f37b0fc
commit
843efc324b
@ -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()),
|
||||||
|
Loading…
Reference in New Issue
Block a user