mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
[lncli] exportchanbackup single channel in hex
It used to be base64, which is not compatible with verifychanbackup, expecting hex.
This commit is contained in:
@@ -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