core-lightning/doc/schemas/notification/block_added.json
Rusty Russell 418887b24a doc: fix up added versions for notification schemas.
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>
2024-07-12 17:30:14 -07:00

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"
}
}
}
}