You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- If the block is greater than the last available block, the block node will respond with a
305
+
`READ_STREAM_INVALID_END_BLOCK_NUMBER` response.
306
+
- During streaming errors may occur.
307
+
- If a Block Node detects an error it will send an `EndStream` response in the next BlockItem to all subscribers.
308
+
A subscriber may choose to retry or connect to a different block node.
309
+
310
+
<aside>
311
+
🚨 **Open Task:** Complete communication overview
312
+
</aside>
313
+
314
+
Additional response codes and their details are noted below
315
+
316
+
| Response code | Description |
317
+
| --------------------- | ------------- |
318
+
| READ_STREAM_UNKNOWN | This status indicates the server software failed to set a status and SHALL be considered a
319
+
software defect. |
320
+
321
+
<aside>
322
+
🚨 **Open Task:** Add all known response codes
323
+
</aside>
232
324
233
325
#### Block Service
234
326
@@ -248,6 +340,10 @@ service BlockAccessService {
248
340
}
249
341
```
250
342
343
+
<aside>
344
+
🚨 **Open Task:** Add all known response codes for API
345
+
</aside>
346
+
251
347
#### State Service
252
348
253
349
Live state, snapshot, changes and single entity state
@@ -267,13 +363,19 @@ service StateService {
267
363
268
364
<aside>
269
365
🚨 **Open Task:** Flesh out 3 different state related query endpoints
270
-
1. State snapshot - covering latest state and historical state. All cases represent verified state at the end of a block.
271
-
2. State changes e.g. what state changes occurred in block x, this is a subset of the block query and avoid the transmission of extra block information beyond state
366
+
1. State snapshot - covering latest state and historical state. All cases represent verified state at the end of a
367
+
block.
368
+
2. State changes e.g. what state changes occurred in block x, this is a subset of the block query and avoid the
369
+
transmission of extra block information beyond state
272
370
- Add new endpoint to proto
273
371
3. Single entity state query e.g. return account 0.0.x
274
372
- Add new endpoint to proto
275
373
</aside>
276
374
375
+
<aside>
376
+
🚨 **Open Task:** Add all known response codes for API
377
+
</aside>
378
+
277
379
#### Reconnect Service
278
380
279
381
Today the network consensus node act as teachers to each other when a new node comes online and needs to ge the latest
@@ -294,8 +396,8 @@ consensus node or block node coming online and looking for latest network detail
294
396
#### Proof Service
295
397
296
398
Consensus nodes provided proof of state APIs has long been desired, however, this would put additional work on the
297
-
consensus node that could be better provided elsewhere. By maintaining live state and streaming block stream information
298
-
a block node can finally fill this gap and provide users with proofs including that of state.
399
+
consensus node that could be better provided elsewhere. By maintaining live state and streaming block stream
400
+
information a block node can finally fill this gap and provide users with proofs including that of state.
299
401
300
402
<aside>
301
403
🚨 **Open Task:** Flesh out response components
@@ -330,9 +432,9 @@ Block nodes will perform significant work by consuming the block stream, verifyi
330
432
multiple API services to further users. To block node operators it is thus important to offer capabilities to cover
331
433
the cost of work and encourage a vibrant economy.
332
434
333
-
To achieve this the Block Node will adopt a charge card comparable model with crypto transfers of hbar required prior to the
334
-
consumption of APIs. The block node will initially manage an hbar ledger on node to track the remaining hbar balance
335
-
that an account ID holds with the block node.
435
+
To achieve this the Block Node will adopt a charge card comparable model with crypto transfers of hbar required prior
436
+
to the consumption of APIs. The block node will initially manage an hbar ledger on node to track the remaining hbar
437
+
balance that an account ID holds with the block node.
336
438
337
439
To achieve this it is required that a block node have it's own account Id that users can transfer hbar to.
338
440
@@ -431,4 +533,5 @@ A collections of URLs used as references through the HIP.
431
533
432
534
## Copyright/license
433
535
434
-
This document is licensed under the Apache License, Version 2.0 -- see [LICENSE](../LICENSE) or (https://www.apache.org/licenses/LICENSE-2.0)
536
+
This document is licensed under the Apache License, Version 2.0 -- see [LICENSE](../LICENSE) or
0 commit comments