From 07fec6b69cf83ae4cd3db59b282b61ff7e783f9e Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Wed, 15 Nov 2023 00:59:34 +0100 Subject: [PATCH] [lncli] exportchanbackup single channel in hex It used to be base64, which is not compatible with verifychanbackup, expecting hex. --- cmd/lncli/commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 9a36b4f589..5428bca849 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -2415,10 +2415,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 }