Repository navigation
Commit 6b3c7ae
Garand Tyson
Send transactions to the upcoming round leaders only, with an admission check (prototype)
A node that accepts a transaction from a client checks it against its last
closed ledger, keeps it, and has its overlay send the body straight to the
leaders that will build the next ledgers instead of advertising it to every
peer. Overlays prove which validator they belong to with a binding signed
by the node key. A target that is not a directly connected, identified peer
makes the node fall back to the advert flood.
The targets (HerderImpl::computeTxFloodTargets) are the leaders of the
node's round of the next slot and of the round after it. With leader terms
the node that closes a ledger leads the next one too; one slot before a new
term starts, that term's expected first leader is a target as well, so that
it holds the transactions when it validates and builds its first set.
Options for measurements: TX_FLOOD_TARGET_LEADERS (0 = every validator),
TX_FLOOD_LEGACY_ADVERTS, BATCH_EXECUTOR_TASKS.1 parent 6716b4e commit 6b3c7ae
27 files changed
Lines changed: 3833 additions & 49 deletions
File tree
- docs
- overlay/src
- flood
- ipc
- libp2p_overlay
- src
- herder
- test
- main
- test
- overlay
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
169 | 176 | | |
170 | 177 | | |
171 | 178 | | |
| |||
179 | 186 | | |
180 | 187 | | |
181 | 188 | | |
| 189 | + | |
| 190 | + | |
182 | 191 | | |
183 | 192 | | |
184 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
294 | 318 | | |
295 | 319 | | |
296 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
0 commit comments