Skip to content

Commit

Permalink
[lncli] exportchanbackup single channel in hex
Browse files Browse the repository at this point in the history
It used to be base64, which is not compatible with verifychanbackup,
expecting hex.
  • Loading branch information
starius committed Nov 16, 2023
1 parent 3cc46d4 commit 07fec6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/lncli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 07fec6b

Please sign in to comment.