solana/core
behzad nouri cafa85bfbb
includes shred-type when computing turbine broadcast seed (#25556)
Indices for code and data shreds of the same slot overlap; and so they
will have the same random number generator seed when shuffling cluster
nodes for turbine broadcast.

This results in the same propagation path for code and data shreds of
the same index and effectively smaller sample size for re-transmitter
nodes. For example a 32:32 batch (32 code + 32 data shreds), is
retransmitted through _at most_ 32 unique nodes, whereas ideally we want
~64 unique re-transmitters.

This commit adds shred-type to seed function so that code and data
sherds of the same (slot, index) will (most likely) have different
propagation paths.
2022-05-25 20:31:53 +00:00
..
benches Refactor Sigverify trait (#25359) 2022-05-24 16:01:41 -05:00
src includes shred-type when computing turbine broadcast seed (#25556) 2022-05-25 20:31:53 +00:00
tests Add options to store full and/or incremental snapshots in separate locations (#24247) 2022-05-10 16:37:41 -04:00
.gitignore
Cargo.toml Remove retain_mut dep (#25494) 2022-05-23 21:45:49 +00:00
build.rs