mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 06:55:13 +01:00
The *schemas* were added in v24.05, but the actual fields are much older. Unfortunately, fixing this required a manual edit of the .msggen.json file, as msggen won't let the added version change (for good reason). Versions when these notifications were originally added: connect: v0.6.3 channel_opened: v0.7.2.1: channel_state_changed: v0.9.1 channel_open_failed: v0.9.3 block_added: v22.11 custommsg: v24.02 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
34 lines
845 B
JSON
34 lines
845 B
JSON
{
|
|
"$schema": "../../rpc-schema-draft.json",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"notification": "custommsg",
|
|
"title": "Notification for custom messages",
|
|
"description": [
|
|
"The **custommsg** notifies whenever the node receives a custom message from a peer."
|
|
],
|
|
"added": "v24.02",
|
|
"request": {},
|
|
"response": {
|
|
"required": [
|
|
"peer_id",
|
|
"payload"
|
|
],
|
|
"properties": {
|
|
"peer_id": {
|
|
"type": "pubkey",
|
|
"description": [
|
|
"The id of the peer which sent the custom message"
|
|
],
|
|
"added": "v24.02"
|
|
},
|
|
"payload": {
|
|
"type": "hex",
|
|
"description": [
|
|
"The hex-encoded payload. The first 2 bytes represent the BOLT-8 message type followed by the message content"
|
|
],
|
|
"added": "v24.02"
|
|
}
|
|
}
|
|
}
|
|
}
|