rpc: modify VerifyChanBackup to take either a Single or Multi
This commit is contained in:
5 files changed
+669
-705
No files matched your search
+624
-643
File diff suppressed because it is too large.
Load diff
+3
-6
@@ -733,10 +733,9 @@ service Lightning {
|
||||
};
|
||||
|
||||
/**
|
||||
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.
|
||||
VerifyChanBackup allows a caller to verify the integrity of a channel backup
|
||||
snapshot. This method will accept either a packed Single or a packed Multi.
|
||||
Specifying both will result in an error.
|
||||
*/
|
||||
rpc VerifyChanBackup(ChanBackupSnapshot) returns (VerifyChanBackupResponse) {
|
||||
option (google.api.http) = {
|
||||
@@ -2365,6 +2364,4 @@ message RestoreBackupResponse {}
|
||||
message ChannelBackupSubscription {}
|
||||
|
||||
message VerifyChanBackupResponse {
|
||||
bool singles_valid = 1 [ json_name = "singles_valid"];
|
||||
bool multi_valid = 2 [ json_name = "multi_valid"];
|
||||
}
|
||||
+2
-12
@@ -226,7 +226,7 @@
|
||||
},
|
||||
"/v1/channels/backup/verify": {
|
||||
"post": {
|
||||
"summary": "*\nVerifyChanBackup allows a caller to verify the integrity of a channel\nbackup snapshot. This method will accept both a packed Single, and also a\nPacked multi. Two bools are returned which indicate if the passed Single\n(if present) is valid and also if the passed Multi (if present) is valid.",
|
||||
"summary": "*\nVerifyChanBackup allows a caller to verify the integrity of a channel backup\nsnapshot. This method will accept either a packed Single or a packed Multi.\nSpecifying both will result in an error.",
|
||||
"operationId": "VerifyChanBackup",
|
||||
"responses": {
|
||||
"200": {
|
||||
@@ -3370,17 +3370,7 @@
|
||||
}
|
||||
},
|
||||
"lnrpcVerifyChanBackupResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"singles_valid": {
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
},
|
||||
"multi_valid": {
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
}
|
||||
}
|
||||
"type": "object"
|
||||
},
|
||||
"lnrpcVerifyMessageRequest": {
|
||||
"type": "object",
|
||||
|
||||
Reference in new issue
Block a user