|
259 | 259 | "Main web site: <https://github.com/ElementsProject/lightning>" |
260 | 260 | ] |
261 | 261 | }, |
| 262 | + "lightning-askrene-bias-channel.json": { |
| 263 | + "$schema": "../rpc-schema-draft.json", |
| 264 | + "type": "object", |
| 265 | + "rpc": "askrene-bias-channel", |
| 266 | + "title": "Command to apply a manual bias to a channel in a layer (EXPERIMENTAL)", |
| 267 | + "description": [ |
| 268 | + "WARNING: experimental, so API may change.", |
| 269 | + "", |
| 270 | + "The **askrene-bias-channel** RPC command tells askrene to favor or disfavor a channel when considering it for routing." |
| 271 | + ], |
| 272 | + "request": { |
| 273 | + "required": [ |
| 274 | + "layer", |
| 275 | + "short_channel_id_dir", |
| 276 | + "bias" |
| 277 | + ], |
| 278 | + "additionalProperties": false, |
| 279 | + "properties": { |
| 280 | + "layer": { |
| 281 | + "type": "string", |
| 282 | + "description": [ |
| 283 | + "The name of the layer to apply this bias to." |
| 284 | + ] |
| 285 | + }, |
| 286 | + "short_channel_id_dir": { |
| 287 | + "type": "short_channel_id_dir", |
| 288 | + "description": [ |
| 289 | + "The short channel id and direction to apply this bias to." |
| 290 | + ] |
| 291 | + }, |
| 292 | + "bias": { |
| 293 | + "type": "integer", |
| 294 | + "description": [ |
| 295 | + "The bias, positive being good and negative being bad (0 being no bias). Useful values are +/-1 through +/-10, though -100 through +100 are possible values." |
| 296 | + ] |
| 297 | + }, |
| 298 | + "description": { |
| 299 | + "type": "string", |
| 300 | + "description": [ |
| 301 | + "Description/annotation to display in askrene-listlayers(7)" |
| 302 | + ] |
| 303 | + } |
| 304 | + } |
| 305 | + }, |
| 306 | + "response": { |
| 307 | + "required": [ |
| 308 | + "biases" |
| 309 | + ], |
| 310 | + "additionalProperties": false, |
| 311 | + "properties": { |
| 312 | + "biases": { |
| 313 | + "type": "array", |
| 314 | + "items": { |
| 315 | + "type": "object", |
| 316 | + "required": [ |
| 317 | + "layer", |
| 318 | + "short_channel_id_dir", |
| 319 | + "bias" |
| 320 | + ], |
| 321 | + "additionalProperties": false, |
| 322 | + "properties": { |
| 323 | + "layer": { |
| 324 | + "type": "string", |
| 325 | + "description": [ |
| 326 | + "The name of the layer this bias applies to." |
| 327 | + ] |
| 328 | + }, |
| 329 | + "short_channel_id_dir": { |
| 330 | + "type": "short_channel_id_dir", |
| 331 | + "description": [ |
| 332 | + "The short channel id and direction" |
| 333 | + ] |
| 334 | + }, |
| 335 | + "bias": { |
| 336 | + "type": "integer", |
| 337 | + "description": [ |
| 338 | + "The bias (-100 to +100)" |
| 339 | + ] |
| 340 | + }, |
| 341 | + "description": { |
| 342 | + "type": "string", |
| 343 | + "description": [ |
| 344 | + "The bias (-100 to +100)" |
| 345 | + ] |
| 346 | + } |
| 347 | + } |
| 348 | + } |
| 349 | + } |
| 350 | + } |
| 351 | + }, |
| 352 | + "see_also": [ |
| 353 | + "lightning-getroutes(7)", |
| 354 | + "lightning-askrene-disable-node(7)", |
| 355 | + "lightning-askrene-create-channel(7)", |
| 356 | + "lightning-askrene-listlayers(7)", |
| 357 | + "lightning-askrene-age(7)" |
| 358 | + ], |
| 359 | + "author": [ |
| 360 | + "Rusty Russell << [email protected]>> is mainly responsible." |
| 361 | + ], |
| 362 | + "resources": [ |
| 363 | + "Main web site: <https://github.com/ElementsProject/lightning>" |
| 364 | + ] |
| 365 | + }, |
262 | 366 | "lightning-askrene-create-channel.json": { |
263 | 367 | "$schema": "../rpc-schema-draft.json", |
264 | 368 | "type": "object", |
|
516 | 620 | } |
517 | 621 | } |
518 | 622 | } |
| 623 | + }, |
| 624 | + "biases": { |
| 625 | + "type": "array", |
| 626 | + "items": { |
| 627 | + "type": "object", |
| 628 | + "required": [ |
| 629 | + "short_channel_id_dir", |
| 630 | + "bias" |
| 631 | + ], |
| 632 | + "additionalProperties": false, |
| 633 | + "properties": { |
| 634 | + "short_channel_id_dir": { |
| 635 | + "type": "short_channel_id_dir", |
| 636 | + "description": [ |
| 637 | + "The short channel id and direction" |
| 638 | + ] |
| 639 | + }, |
| 640 | + "bias": { |
| 641 | + "type": "integer", |
| 642 | + "description": [ |
| 643 | + "The bias (-100 to +100)" |
| 644 | + ] |
| 645 | + }, |
| 646 | + "description": { |
| 647 | + "type": "string", |
| 648 | + "description": [ |
| 649 | + "The bias (-100 to +100)" |
| 650 | + ] |
| 651 | + } |
| 652 | + } |
| 653 | + } |
519 | 654 | } |
520 | 655 | } |
521 | 656 | } |
|
896 | 1031 | } |
897 | 1032 | } |
898 | 1033 | } |
| 1034 | + }, |
| 1035 | + "biases": { |
| 1036 | + "type": "array", |
| 1037 | + "items": { |
| 1038 | + "type": "object", |
| 1039 | + "required": [ |
| 1040 | + "short_channel_id_dir", |
| 1041 | + "bias" |
| 1042 | + ], |
| 1043 | + "additionalProperties": false, |
| 1044 | + "properties": { |
| 1045 | + "short_channel_id_dir": { |
| 1046 | + "type": "short_channel_id_dir", |
| 1047 | + "description": [ |
| 1048 | + "The short channel id and direction" |
| 1049 | + ] |
| 1050 | + }, |
| 1051 | + "bias": { |
| 1052 | + "type": "integer", |
| 1053 | + "description": [ |
| 1054 | + "The bias (-100 to +100)" |
| 1055 | + ] |
| 1056 | + }, |
| 1057 | + "description": { |
| 1058 | + "type": "string", |
| 1059 | + "description": [ |
| 1060 | + "The bias (-100 to +100)" |
| 1061 | + ] |
| 1062 | + } |
| 1063 | + } |
| 1064 | + } |
899 | 1065 | } |
900 | 1066 | } |
901 | 1067 | } |
|
907 | 1073 | "lightning-askrene-disable-node(7)", |
908 | 1074 | "lightning-askrene-create-channel(7)", |
909 | 1075 | "lightning-askrene-inform-channel(7)", |
| 1076 | + "lightning-askrene-bias-channel(7)", |
910 | 1077 | "lightning-askrene-age(7)" |
911 | 1078 | ], |
912 | 1079 | "author": [ |
|
0 commit comments