[lncli] exportchanbackup single channel in hex
It used to be base64, which is not compatible with verifychanbackup, expecting hex.
This commit is contained in:
1 file changed
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user