mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +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
769 B
JSON
34 lines
769 B
JSON
{
|
|
"$schema": "../../rpc-schema-draft.json",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"notification": "block_added",
|
|
"title": "Notification that a block has been added to the blockchain",
|
|
"description": [
|
|
"The **block_added** notification is sent whenever the node receives a new block from the blockchain."
|
|
],
|
|
"added": "v22.11",
|
|
"request": {},
|
|
"response": {
|
|
"required": [
|
|
"hash",
|
|
"height"
|
|
],
|
|
"properties": {
|
|
"hash": {
|
|
"type": "hash",
|
|
"description": [
|
|
"The hash of the block."
|
|
],
|
|
"added": "v22.11"
|
|
},
|
|
"height": {
|
|
"type": "u32",
|
|
"description": [
|
|
"The total block height."
|
|
],
|
|
"added": "v22.11"
|
|
}
|
|
}
|
|
}
|
|
}
|