Merge pull request #10384 from starius/rm-dead-code

lncli: remove dead code
This commit is contained in:
Yong authored and GitHub committed 2025-11-20 16:09:02 +08:00
commit 8c8662c86a
1 file changed
-13
-13
View File
@@ -2972,19 +2972,6 @@ func exportChanBackup(ctx *cli.Context) error {
// TODO(roasbeef): support for export | restore ?
var chanPoints []string
for _, chanPoint := range chanBackup.MultiChanBackup.ChanPoints {
txid, err := chainhash.NewHash(chanPoint.GetFundingTxidBytes())
if err != nil {
return err
}
chanPoints = append(chanPoints, wire.OutPoint{
Hash: *txid,
Index: chanPoint.OutputIndex,
}.String())
}
printRespJSON(chanBackup)
return nil