mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-07 11:22:37 +01: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 {
|
printJSON(struct {
|
||||||
ChanPoint string `json:"chan_point"`
|
ChanPoint string `json:"chan_point"`
|
||||||
ChanBackup []byte `json:"chan_backup"`
|
ChanBackup string `json:"chan_backup"`
|
||||||
}{
|
}{
|
||||||
ChanPoint: chanPoint.String(),
|
ChanPoint: chanPoint.String(),
|
||||||
ChanBackup: chanBackup.ChanBackup,
|
ChanBackup: hex.EncodeToString(chanBackup.ChanBackup),
|
||||||
})
|
})
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user