Skip to content

Commit aef0691

Browse files
committed
update block header messages and add deprecation notes
1 parent 74fc86a commit aef0691

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

docs/protocol/wallet-protocol.md

+18-4
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ class NewPeakWallet(Streamable):
111111

112112
## request_block_header
113113

114-
DEPRECATED: this message has been deprecated and replaced with request_block_headers (plural).
115114
A request from the wallet to the full node for a HeaderBlock at a specific height.
116115

117116
```python
@@ -121,7 +120,6 @@ class RequestBlockHeader(Streamable):
121120

122121
## respond_block_header
123122

124-
DEPRECATED: this message has been deprecated and replaced with respond_block_headers (plural).
125123
A response to a `request_block_header` request.
126124

127125
```python
@@ -131,7 +129,8 @@ class RespondBlockHeader(Streamable):
131129

132130
## request_block_headers
133131

134-
A request from the wallet to the full node for a HeaderBlock at a specific height.
132+
A request from the wallet to the full node for a HeaderBlock at a specific height.
133+
NOTE: this message deprecates and replaces `request_header_blocks` (flip block and header).
135134

136135
```python
137136
class RequestBlockHeaders(Streamable):
@@ -140,13 +139,25 @@ class RequestBlockHeaders(Streamable):
140139

141140
## respond_block_headers
142141

143-
A response to a `request_block_headers` request.
142+
A response to a `request_block_headers` request.
143+
NOTE: this message deprecates and replaces `respond_header_blocks` (flip block and header).
144144

145145
```python
146146
class RespondBlockHeaders(Streamable):
147147
header_block: HeaderBlock
148148
```
149149

150+
## reject_block_headers
151+
152+
A rejection to a `request_block_headers` request.
153+
NOTE: this message deprecates and replaces `reject_header_blocks` (flip block and header).
154+
155+
```python
156+
class RejectBlockHeaders(Streamable):
157+
start_height: uint32
158+
end_height: uint32
159+
```
160+
150161
## reject_header_request
151162

152163
A rejection to a `request_block_header` request.
@@ -235,6 +246,7 @@ class RejectAdditionsRequest(Streamable):
235246

236247
## request_header_blocks
237248

249+
DEPRECATED: this message has been deprecated and replaced with `request_block_headers` (flip block and header).
238250
A request from the wallet to the full node for a list of consecutive header blocks, inclusive.
239251

240252
```python
@@ -245,6 +257,7 @@ class RequestHeaderBlocks(Streamable):
245257

246258
## reject_header_blocks
247259

260+
DEPRECATED: this message has been deprecated and replaced with `reject_block_headers` (flip block and header).
248261
A rejection for a `request_header_blocks` request.
249262

250263
```python
@@ -255,6 +268,7 @@ class RejectHeaderBlocks(Streamable):
255268

256269
## respond_header_blocks
257270

271+
DEPRECATED: this message has been deprecated and replaced with `respond_block_headers` (flip block and header).
258272
A response to a `request_header_blocks` request.
259273

260274
```python

0 commit comments

Comments
 (0)