mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 01:24:42 +01:00
08d5776ebc
We should be using amount_msat always. Many tests were not. Plus, deprecating it simplifies the code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Deprecated: JSONRPC: `sendpay` `route` elements `msatoshi` (use `amount_msat`)
65 lines
1.1 KiB
JSON
65 lines
1.1 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"route",
|
|
"payment_hash"
|
|
],
|
|
"properties": {
|
|
"route": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"amount_msat",
|
|
"id",
|
|
"delay",
|
|
"channel"
|
|
],
|
|
"properties": {
|
|
"amount_msat": {
|
|
"type": "msat"
|
|
},
|
|
"msatoshi": {
|
|
"deprecated": "true"
|
|
},
|
|
"id": {
|
|
"type": "pubkey"
|
|
},
|
|
"delay": {
|
|
"type": "u16"
|
|
},
|
|
"channel": {
|
|
"type": "short_channel_id"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"payment_hash": {
|
|
"type": "hash"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"amount_msat": {
|
|
"type": "msat"
|
|
},
|
|
"bolt11": {
|
|
"type": "string"
|
|
},
|
|
"payment_secret": {
|
|
"type": "secret"
|
|
},
|
|
"partid": {
|
|
"type": "u16"
|
|
},
|
|
"localofferid": {
|
|
"type": "hex"
|
|
},
|
|
"groupid": {
|
|
"type": "u64"
|
|
}
|
|
}
|
|
}
|