Commit ec73ef3
Replace setInventoryKnown with a rolling bloom filter.
Mruset setInventoryKnown was reduced to a remarkably small 1000
entries as a side effect of sendbuffer size reductions in 2012.
This removes setInventoryKnown filtering from merkleBlock responses
because false positives there are especially unattractive and
also because I'm not sure if there aren't race conditions around
the relay pool that would cause some transactions there to
be suppressed. (Also, ProcessGetData was accessing
setInventoryKnown without taking the required lock.)1 parent a775182 commit ec73ef3
3 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4138 | 4138 | | |
4139 | 4139 | | |
4140 | 4140 | | |
4141 | | - | |
4142 | | - | |
| 4141 | + | |
4143 | 4142 | | |
4144 | 4143 | | |
4145 | 4144 | | |
| |||
5511 | 5510 | | |
5512 | 5511 | | |
5513 | 5512 | | |
5514 | | - | |
| 5513 | + | |
5515 | 5514 | | |
5516 | 5515 | | |
5517 | 5516 | | |
| |||
5532 | 5531 | | |
5533 | 5532 | | |
5534 | 5533 | | |
5535 | | - | |
5536 | | - | |
| 5534 | + | |
5537 | 5535 | | |
| 5536 | + | |
5538 | 5537 | | |
5539 | 5538 | | |
5540 | 5539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2342 | 2342 | | |
2343 | 2343 | | |
2344 | 2344 | | |
2345 | | - | |
| 2345 | + | |
2346 | 2346 | | |
2347 | 2347 | | |
2348 | 2348 | | |
| |||
2369 | 2369 | | |
2370 | 2370 | | |
2371 | 2371 | | |
| 2372 | + | |
2372 | 2373 | | |
2373 | 2374 | | |
2374 | 2375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
| 505 | + | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| |||
0 commit comments