routing: invalid channels updatechanpolicy call

This commit is contained in:
ErikEk committed 2021-09-15 10:20:49 +02:00
1 parent 03bce2129b
commit 46e9481e6c
9 files changed
+1787 -1342

No files matched your search

+1438 -1266
View File
File diff suppressed because it is too large. Load diff
+21
View File
@@ -3635,7 +3635,28 @@ message PolicyUpdateRequest {
// If true, min_htlc_msat is applied.
bool min_htlc_msat_specified = 8;
}
enum UpdateFailure {
UPDATE_FAILURE_UNKNOWN = 0;
UPDATE_FAILURE_PENDING = 1;
UPDATE_FAILURE_NOT_FOUND = 2;
UPDATE_FAILURE_INTERNAL_ERR = 3;
UPDATE_FAILURE_INVALID_PARAMETER = 4;
}
message FailedUpdate {
// The outpoint in format txid:n
OutPoint outpoint = 1;
// Reason for the policy update failure.
UpdateFailure reason = 2;
// A string representation of the policy update error.
string update_error = 3;
}
message PolicyUpdateResponse {
// List of failed policy updates.
repeated FailedUpdate failed_updates = 1;
}
message ForwardingHistoryRequest {
+38 -1
View File
@@ -3831,6 +3831,23 @@
}
}
},
"lnrpcFailedUpdate": {
"type": "object",
"properties": {
"outpoint": {
"$ref": "#/definitions/lnrpcOutPoint",
"title": "The outpoint in format txid:n"
},
"reason": {
"$ref": "#/definitions/lnrpcUpdateFailure",
"description": "Reason for the policy update failure."
},
"update_error": {
"type": "string",
"description": "A string representation of the policy update error."
}
}
},
"lnrpcFailure": {
"type": "object",
"properties": {
@@ -5562,7 +5579,16 @@
}
},
"lnrpcPolicyUpdateResponse": {
"type": "object"
"type": "object",
"properties": {
"failed_updates": {
"type": "array",
"items": {
"$ref": "#/definitions/lnrpcFailedUpdate"
},
"description": "List of failed policy updates."
}
}
},
"lnrpcPsbtShim": {
"type": "object",
@@ -6100,6 +6126,17 @@
}
}
},
"lnrpcUpdateFailure": {
"type": "string",
"enum": [
"UPDATE_FAILURE_UNKNOWN",
"UPDATE_FAILURE_PENDING",
"UPDATE_FAILURE_NOT_FOUND",
"UPDATE_FAILURE_INTERNAL_ERR",
"UPDATE_FAILURE_INVALID_PARAMETER"
],
"default": "UPDATE_FAILURE_UNKNOWN"
},
"lnrpcUtxo": {
"type": "object",
"properties": {