lnrpc+rpcserver: replace ChanPoint w/ OutPoint in Utxo msg

This commit is contained in:
Conner Fromknecht
2019-02-01 18:01:51 -08:00
parent ddfcba46e7
commit c74dcbe6ff
4 changed files with 652 additions and 568 deletions

View File

@@ -717,10 +717,9 @@ func (r *rpcServer) ListUnspent(ctx context.Context,
// Now that we know we have a proper mapping to an address,
// we'll convert the regular outpoint to an lnrpc variant.
outpoint := &lnrpc.ChannelPoint{
FundingTxid: &lnrpc.ChannelPoint_FundingTxidStr{
FundingTxidStr: utxo.OutPoint.Hash.String(),
},
outpoint := &lnrpc.OutPoint{
TxidBytes: utxo.OutPoint.Hash[:],
TxidStr: utxo.OutPoint.Hash.String(),
OutputIndex: utxo.OutPoint.Index,
}