From a1aec882685475d9adbe1371250f65322943a484 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/commands/commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/commands/commands.go b/cmd/commands/commands.go index 2c1191ab2..38d480a3e 100644 --- a/cmd/commands/commands.go +++ b/cmd/commands/commands.go @@ -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 }