Skip to content

Commit fd8e765

Browse files
committed
fix formatting + name protocols appropriately
1 parent fc5aa91 commit fd8e765

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

docs/art/tvu.bob

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
+------------+
22
| Gossip |
33
| Service |
4-
+-------------+ | |
5-
|Child | +------------+ +-+-----+----+
6-
|Validators | |Neighborhood| | ^
7-
| | |Validators | | |
8-
+-------+-----+ | | | |
9-
^ +---------+--+ Peer| |Votes
10-
| ^ List| |
11-
+-----------------+ | | |
12-
shreds(forward=true)| | | |
4+
+-------------+ | |
5+
|Child | +------------+ +-+-----+----+
6+
|Validators | |Neighborhood| | ^
7+
| | |Validators | | |
8+
+-------+-----+ | | | |
9+
^ +---------+--+ Peer| |Votes
10+
| ^ List| |
11+
+------------------------+ | | |
12+
shreds(forward = true) | | | |
1313
+---------------------------------------------------------------------------------------------+
1414
| | | | | |
1515
| TVU | | +--------+ | |
1616
| | | v | |
1717
+------------+ | +-------+ +------------+ +-+--+---+---+ +---+--------------+ +-------------+ |
18-
| | Repair | | | | | | Retransmit | | Replay | | Transaction | |
18+
| | Repair | | | | | | Retransmit | | Replay | | Transaction | |
1919
| Upstream +------------->+ +->+ Shred +--->+ Stage +----->+ Stage +----->+ Status | |
20-
| Validators | TVU | | Shred | | Verify | | | | +--------------+ | | Service | |
20+
| Validators | Turbine | | Shred | | Verify | | | | +--------------+ | | Service | |
2121
| +------------->+ Fetch | | Leader Sig | +------+-----+ | | PoH Verify | | | (optional) | |
2222
| | | | Stage | | Stage | ^ | | TX Sig Verify| | +-------------+ |
2323
| +------------->+ | | | | | | | | |
24-
| | TVU | | | +--+---------+ | | +-+------------+ | |
25-
+------------+ Forwards| +-------+ ^ | | | | |
24+
| | Turbine | | | +--+---------+ | | +-+------------+ | |
25+
+------------+ Forwards | +-------+ ^ | | | | |
2626
| | | +------------------+ |
2727
| | | | |
2828
| | | | |

docs/src/validator/tvu.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ pagination_label: Validator's Transaction Validation Unit (TVU)
66
---
77

88
TVU (Transaction Validation Unit) is the logic of the validator
9-
responsible for validating and propagating blocks and processing
10-
those blocks' transactions through the runtime.
9+
responsible for propagating blocks between validators and ensuring that
10+
those blocks' transactions reach the replay stage. Its principal external
11+
interface is the turbine protocol.
1112

1213
![TVU Block Diagram](/img/tvu.svg)
1314

@@ -53,6 +54,7 @@ In the `ContactInfo` struct, all sockets are identified by a tag/key, e.g.:
5354
```rust
5455
const SOCKET_TAG_TVU: u8 = 10; // For UDP
5556
const SOCKET_TAG_TVU_QUIC: u8 = 11; // For QUIC
57+
```
5658

5759
* `set_socket()` creates a `SocketEntry` and stores that into `ContactInfo::sockets`
5860
* `set_socket()` updates `ContactInfo::cache`

0 commit comments

Comments
 (0)