From 843efc324b03997bb3228e731827ef549eb7d10c Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 5 Oct 2020 11:26:24 +0200 Subject: [PATCH] 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. --- lnrpc/walletrpc/walletkit_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnrpc/walletrpc/walletkit_server.go b/lnrpc/walletrpc/walletkit_server.go index c39aa793..98be2768 100644 --- a/lnrpc/walletrpc/walletkit_server.go +++ b/lnrpc/walletrpc/walletkit_server.go @@ -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()),