Commit b71cc84
authored
fix: Don't count flexible HTTP outcall timeouts towards maximum responses during validation (#10677)
To limit the effect on the finalization rate, we limit the number of
(non-timeout) HTTP outcalls responses that are allowed to be included
into a single payload.
https://github.com/dfinity/ic/blob/38556a3a0f8445310a9fd7323e28e6fb2eae2d30/rs/types/types/src/canister_http.rs#L81-L85
The exception are timeout responses, which are very cheap to verify.
Therefore, they do not count towards this limit during payload building:
https://github.com/dfinity/ic/blob/38556a3a0f8445310a9fd7323e28e6fb2eae2d30/rs/https_outcalls/consensus/src/payload_builder.rs#L206-L227
However, before this PR, flexible timeouts did count towards the limit
during payload validation. A honest block maker could therefore generate
a payload with more the 500 flexible timeouts, which would be rejected
by other honest block makers.
Note that the flexible outcalls feature isn't enabled yet.1 parent c3da11f commit b71cc84
2 files changed
Lines changed: 62 additions & 1 deletion
File tree
- rs
- https_outcalls/consensus/src/payload_builder
- types/types/src/batch
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
423 | 481 | | |
424 | 482 | | |
425 | 483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
178 | 181 | | |
179 | 182 | | |
180 | 183 | | |
| |||
0 commit comments