lnrpc: add new VerifyChanBackup command
This commit is contained in:
3 files changed
+524
-404
No files matched your search
+497
-404
File diff suppressed because it is too large.
Load diff
@@ -726,6 +726,15 @@ service Lightning {
|
|||||||
rpc ExportAllChannelBackups(ChanBackupExportRequest) returns (ChanBackupSnapshot) {
|
rpc ExportAllChannelBackups(ChanBackupExportRequest) returns (ChanBackupSnapshot) {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
VerifyChanBackup allows a caller to verify the integrity of a channel
|
||||||
|
backup snapshot. This method will accept both a packed Single, and also a
|
||||||
|
Packed multi. Two bools are returned which indicate if the passed Single
|
||||||
|
(if present) is valid and also if the passed Multi (if present) is valid.
|
||||||
|
*/
|
||||||
|
rpc VerifyChanBackup(ChanBackupSnapshot) returns (VerifyChanBackupResponse) {
|
||||||
|
};
|
||||||
|
|
||||||
/** lncli: `restorechanbackup`
|
/** lncli: `restorechanbackup`
|
||||||
RestoreChannelBackups accepts a set of singular channel backups, or a
|
RestoreChannelBackups accepts a set of singular channel backups, or a
|
||||||
single encrypted multi-chan backup and attempts to recover any funds
|
single encrypted multi-chan backup and attempts to recover any funds
|
||||||
@@ -2320,3 +2329,8 @@ message RestoreChanBackupRequest {
|
|||||||
message RestoreBackupResponse {}
|
message RestoreBackupResponse {}
|
||||||
|
|
||||||
message ChannelBackupSubscription {}
|
message ChannelBackupSubscription {}
|
||||||
|
|
||||||
|
message VerifyChanBackupResponse {
|
||||||
|
bool singles_valid = 1 [ json_name = "singles_valid"];
|
||||||
|
bool multi_valid = 2 [ json_name = "multi_valid"];
|
||||||
|
}
|
||||||
@@ -3232,6 +3232,19 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"lnrpcVerifyChanBackupResponse": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"singles_valid": {
|
||||||
|
"type": "boolean",
|
||||||
|
"format": "boolean"
|
||||||
|
},
|
||||||
|
"multi_valid": {
|
||||||
|
"type": "boolean",
|
||||||
|
"format": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"lnrpcVerifyMessageRequest": {
|
"lnrpcVerifyMessageRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
Reference in new issue
Block a user