rpc: modify VerifyChanBackup to take either a Single or Multi

This commit is contained in:
Wilmer Paulino committed 2019-04-05 12:51:16 -07:00
1 parent 3a19afe46d
commit b71bb9400a
5 files changed
+669 -705

No files matched your search

+3 -6
View File
@@ -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"];
}