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>
This commit is contained in:
Rusty Russell 2024-06-28 11:16:32 +09:30 committed by ShahanaFarooqui
parent 05f5976a9c
commit 418887b24a
8 changed files with 81 additions and 73 deletions

View File

@ -11401,87 +11401,87 @@
"deprecated": false
},
"block_added": {
"added": "v24.05",
"added": "v22.11",
"deprecated": null
},
"block_added.hash": {
"added": "v24.05",
"added": "v22.11",
"deprecated": false
},
"block_added.height": {
"added": "v24.05",
"added": "v22.11",
"deprecated": false
},
"channel_open_failed": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": null
},
"channel_open_failed.channel_id": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"channel_opened": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": null
},
"channel_opened.channel_ready": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"channel_opened.funding_msat": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"channel_opened.funding_txid": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"channel_opened.id": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"connect": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": null
},
"connect.address": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"connect.address.address": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"connect.address.port": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"connect.address.socket": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"connect.address.type": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"connect.direction": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"connect.id": {
"added": "v24.05",
"added": "pre-v0.10.1",
"deprecated": false
},
"custommsg": {
"added": "v24.05",
"added": "v24.02",
"deprecated": null
},
"custommsg.payload": {
"added": "v24.05",
"added": "v24.02",
"deprecated": false
},
"custommsg.peer_id": {
"added": "v24.05",
"added": "v24.02",
"deprecated": false
},
"multifundchannel": {

View File

@ -31003,7 +31003,7 @@
"description": [
"The **block_added** notification is sent whenever the node receives a new block from the blockchain."
],
"added": "v24.05",
"added": "v22.11",
"request": {},
"response": {
"required": [
@ -31016,14 +31016,14 @@
"description": [
"The hash of the block."
],
"added": "v24.05"
"added": "v22.11"
},
"height": {
"type": "u32",
"description": [
"The total block height."
],
"added": "v24.05"
"added": "v22.11"
}
}
}
@ -31037,7 +31037,7 @@
"description": [
"The **channel_open_failed** notification is sent whenever the channel opening request is failed."
],
"added": "v24.05",
"added": "pre-v0.10.1",
"request": {},
"response": {
"required": [
@ -31049,7 +31049,7 @@
"description": [
"The channel id of the channel."
],
"added": "v24.05"
"added": "pre-v0.10.1"
}
}
}
@ -31063,7 +31063,7 @@
"description": [
"The **channel_opened** notification is sent whenever the channel opened successfully."
],
"added": "v24.05",
"added": "pre-v0.10.1",
"request": {},
"response": {
"required": [
@ -31078,28 +31078,28 @@
"description": [
"The id of the peer which opened the channel"
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"funding_msat": {
"type": "msat",
"description": [
"The amount of the funding transaction"
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"funding_txid": {
"type": "txid",
"description": [
"The transaction id of the funding transaction"
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"channel_ready": {
"type": "boolean",
"description": [
"true if the channel is ready"
],
"added": "v24.05"
"added": "pre-v0.10.1"
}
}
}
@ -31113,7 +31113,7 @@
"description": [
"The **channel_state_changed** informs whenever the state of the channel has been updated."
],
"added": "v24.05",
"added": "pre-v0.10.1",
"request": {},
"response": {
"required": [
@ -31132,28 +31132,28 @@
"description": [
"The peer id of the channel."
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"channel_id": {
"type": "hash",
"description": [
"The channel id of the channel."
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"short_channel_id": {
"type": "short_channel_id",
"description": [
"The short channel id of the channel. If the channel is not yet confirmed, this field will be null."
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"timestamp": {
"type": "string",
"description": [
"The timestamp of the state change."
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"old_state": {
"type": "string",
@ -31176,7 +31176,7 @@
"description": [
"The channel state, in particular \"CHANNELD_NORMAL\" means the channel can be used normally"
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"new_state": {
"type": "string",
@ -31199,7 +31199,7 @@
"description": [
"The channel state, in particular \"CHANNELD_NORMAL\" means the channel can be used normally"
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"cause": {
"type": "string",
@ -31214,14 +31214,14 @@
"description": [
"The cause of the state change."
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"message": {
"type": "string",
"description": [
"The state change message."
],
"added": "v24.05"
"added": "pre-v0.10.1"
}
}
}
@ -31235,7 +31235,7 @@
"The **connect** informs whenever the node is connected to a peer."
],
"additionalProperties": false,
"added": "v24.05",
"added": "pre-v0.10.1",
"request": {},
"response": {
"required": [
@ -31249,7 +31249,7 @@
"description": [
"The id of the peer which sent the custom message"
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"direction": {
"type": "string",
@ -31260,14 +31260,14 @@
"description": [
"Direction of the connection"
],
"added": "v24.05"
"added": "pre-v0.10.1"
},
"address": {
"type": "object",
"description": [
"Address information (mainly useful if **direction** is *out*)"
],
"added": "v24.05",
"added": "pre-v0.10.1",
"additionalProperties": true,
"required": [
"type"
@ -31275,6 +31275,7 @@
"properties": {
"type": {
"type": "string",
"added": "pre-v0.10.1",
"enum": [
"local socket",
"ipv4",
@ -31308,6 +31309,7 @@
"type": {},
"socket": {
"type": "string",
"added": "pre-v0.10.1",
"description": [
"Socket filename"
]
@ -31339,12 +31341,14 @@
"type": {},
"address": {
"type": "string",
"added": "pre-v0.10.1",
"description": [
"Address in expected format for **type**"
]
},
"port": {
"type": "u16",
"added": "pre-v0.10.1",
"description": [
"Port number"
]
@ -31366,7 +31370,7 @@
"description": [
"The **custommsg** notifies whenever the node receives a custom message from a peer."
],
"added": "v24.05",
"added": "v24.02",
"request": {},
"response": {
"required": [
@ -31379,14 +31383,14 @@
"description": [
"The id of the peer which sent the custom message"
],
"added": "v24.05"
"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.05"
"added": "v24.02"
}
}
}

View File

@ -7,7 +7,7 @@
"description": [
"The **block_added** notification is sent whenever the node receives a new block from the blockchain."
],
"added": "v24.05",
"added": "v22.11",
"request": {},
"response": {
"required": [
@ -20,14 +20,14 @@
"description": [
"The hash of the block."
],
"added" : "v24.05"
"added": "v22.11"
},
"height": {
"type": "u32",
"description": [
"The total block height."
],
"added" : "v24.05"
"added": "v22.11"
}
}
}

View File

@ -7,7 +7,7 @@
"description": [
"The **channel_open_failed** notification is sent whenever the channel opening request is failed."
],
"added": "v24.05",
"added": "pre-v0.10.1",
"request": {},
"response": {
"required": [
@ -19,7 +19,7 @@
"description": [
"The channel id of the channel."
],
"added" : "v24.05"
"added": "pre-v0.10.1"
}
}
}

View File

@ -7,7 +7,7 @@
"description": [
"The **channel_opened** notification is sent whenever the channel opened successfully."
],
"added": "v24.05",
"added": "pre-v0.10.1",
"request": {},
"response": {
"required": [
@ -22,28 +22,28 @@
"description": [
"The id of the peer which opened the channel"
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"funding_msat": {
"type": "msat",
"description": [
"The amount of the funding transaction"
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"funding_txid": {
"type": "txid",
"description": [
"The transaction id of the funding transaction"
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"channel_ready": {
"type": "boolean",
"description": [
"true if the channel is ready"
],
"added" : "v24.05"
"added": "pre-v0.10.1"
}
}
}

View File

@ -7,7 +7,7 @@
"description": [
"The **channel_state_changed** informs whenever the state of the channel has been updated."
],
"added": "v24.05",
"added": "pre-v0.10.1",
"request": {},
"response": {
"required": [
@ -26,28 +26,28 @@
"description": [
"The peer id of the channel."
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"channel_id": {
"type": "hash",
"description": [
"The channel id of the channel."
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"short_channel_id": {
"type": "short_channel_id",
"description": [
"The short channel id of the channel. If the channel is not yet confirmed, this field will be null."
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"timestamp": {
"type": "string",
"description": [
"The timestamp of the state change."
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"old_state": {
"type": "string",
@ -70,7 +70,7 @@
"description": [
"The channel state, in particular \"CHANNELD_NORMAL\" means the channel can be used normally"
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"new_state": {
"type": "string",
@ -93,7 +93,7 @@
"description": [
"The channel state, in particular \"CHANNELD_NORMAL\" means the channel can be used normally"
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"cause": {
"type": "string",
@ -108,14 +108,14 @@
"description": [
"The cause of the state change."
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"message": {
"type": "string",
"description": [
"The state change message."
],
"added" : "v24.05"
"added": "pre-v0.10.1"
}
}
}

View File

@ -7,7 +7,7 @@
"The **connect** informs whenever the node is connected to a peer."
],
"additionalProperties": false,
"added": "v24.05",
"added": "pre-v0.10.1",
"request": {},
"response": {
"required": [
@ -21,7 +21,7 @@
"description": [
"The id of the peer which sent the custom message"
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"direction": {
"type": "string",
@ -32,14 +32,14 @@
"description": [
"Direction of the connection"
],
"added" : "v24.05"
"added": "pre-v0.10.1"
},
"address": {
"type": "object",
"description": [
"Address information (mainly useful if **direction** is *out*)"
],
"added" : "v24.05",
"added": "pre-v0.10.1",
"additionalProperties": true,
"required": [
"type"
@ -47,6 +47,7 @@
"properties": {
"type": {
"type": "string",
"added": "pre-v0.10.1",
"enum": [
"local socket",
"ipv4",
@ -80,6 +81,7 @@
"type": {},
"socket": {
"type": "string",
"added": "pre-v0.10.1",
"description": [
"Socket filename"
]
@ -111,12 +113,14 @@
"type": {},
"address": {
"type": "string",
"added": "pre-v0.10.1",
"description": [
"Address in expected format for **type**"
]
},
"port": {
"type": "u16",
"added": "pre-v0.10.1",
"description": [
"Port number"
]

View File

@ -7,7 +7,7 @@
"description": [
"The **custommsg** notifies whenever the node receives a custom message from a peer."
],
"added": "v24.05",
"added": "v24.02",
"request": {},
"response": {
"required": [
@ -20,14 +20,14 @@
"description": [
"The id of the peer which sent the custom message"
],
"added" : "v24.05"
"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.05"
"added": "v24.02"
}
}
}