cmd/lncli: expose pending input sweeps within UtxoSweeper over lncli

This commit is contained in:
Wilmer Paulino committed 2019-06-06 03:23:19 -07:00
1 parent d01f88ecdc
commit 1d8b70eaa6
5 files changed
+125 -1

No files matched your search

+4 -1
View File
@@ -3,6 +3,7 @@ package main
import (
"fmt"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/lightningnetwork/lnd/lnrpc"
)
@@ -11,7 +12,9 @@ type OutPoint string
// NewOutPointFromProto formats the lnrpc.OutPoint into an OutPoint for display.
func NewOutPointFromProto(op *lnrpc.OutPoint) OutPoint {
return OutPoint(fmt.Sprintf("%s:%d", op.TxidStr, op.OutputIndex))
var hash chainhash.Hash
copy(hash[:], op.TxidBytes)
return OutPoint(fmt.Sprintf("%v:%d", hash, op.OutputIndex))
}
// Utxo displays information about an unspent output, including its address,