[lncli] exportchanbackup single channel in hex

It used to be base64, which is not compatible with verifychanbackup,
expecting hex.
This commit is contained in:
Boris Nagaev
2023-11-15 00:59:34 +01:00
parent 136cb42457
commit a1aec88268

View File

@@ -2679,10 +2679,10 @@ func exportChanBackup(ctx *cli.Context) error {
printJSON(struct {
ChanPoint string `json:"chan_point"`
ChanBackup []byte `json:"chan_backup"`
ChanBackup string `json:"chan_backup"`
}{
ChanPoint: chanPoint.String(),
ChanBackup: chanBackup.ChanBackup,
ChanBackup: hex.EncodeToString(chanBackup.ChanBackup),
})
return nil
}