[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 committed 2024-10-11 10:00:42 -03:00
1 parent 136cb42457
commit a1aec88268
1 file changed
+2 -2
+2 -2
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
}