poolrpc: add list of allowed node ids to Order

This commit is contained in:
positiveblue 2022-03-25 19:37:11 -07:00
parent 093cd3f0b2
commit c85f2175dc
No known key found for this signature in database
GPG key ID: 4FFF2510928804DC
3 changed files with 605 additions and 555 deletions

File diff suppressed because it is too large Load diff

View file

@ -620,6 +620,14 @@ message Order {
// The channel type to use for the resulting matched channels.
OrderChannelType channel_type = 13;
// List of nodes that will be allowed to match with our order. Incompatible
// with the `not_allowed_node_ids` field.
repeated bytes allowed_node_ids = 14;
// List of nodes that won't be allowed to match with our order. Incompatible
// with the `allowed_node_ids` field.
repeated bytes not_allowed_node_ids = 15;
}
message Bid {

View file

@ -2000,6 +2000,22 @@
"channel_type": {
"$ref": "#/definitions/poolrpcOrderChannelType",
"description": "The channel type to use for the resulting matched channels."
},
"allowed_node_ids": {
"type": "array",
"items": {
"type": "string",
"format": "byte"
},
"description": "List of nodes that will be allowed to match with our order. Incompatible\nwith the `not_allowed_node_ids` field."
},
"not_allowed_node_ids": {
"type": "array",
"items": {
"type": "string",
"format": "byte"
},
"description": "List of nodes that won't be allowed to match with our order. Incompatible\nwith the `allowed_node_ids` field."
}
}
},