solana-with-rpc-optimizations/core/benches
behzad nouri eff59193db
enforces that LAST_SHRED_IN_SLOT is also DATA_COMPLETE_SHRED (#24892)
A data shred cannot be LAST_SHRED_IN_SLOT if not also DATA_COMPLETE_SHRED.
So LAST_SHRED_IN_SLOT should also imply DATA_COMPLETE_SHRED:
https://github.com/solana-labs/solana/blob/74b586ae7/ledger/src/shredder.rs#L116-L117
https://github.com/solana-labs/solana/blob/74b586ae7/core/src/broadcast_stage/standard_broadcast_run.rs#L80-L81

However current shred constructs allow specifying a shred which is
LAST_SHRED_IN_SLOT but not DATA_COMPLETE_SHRED:
https://github.com/solana-labs/solana/blob/74b586ae7/ledger/src/shred.rs#L117-L118
https://github.com/solana-labs/solana/blob/74b586ae7/ledger/src/shred.rs#L272-L273

The commit updates ShredFlags so that if a shred is not
DATA_COMPLETE_SHRED it cannot be LAST_SHRED_IN_SLOT either.
2022-05-02 23:33:53 +00:00
..
banking_stage.rs Replace type alias with newtype for UnprocesedPacketBatches 2022-03-14 13:14:27 -05:00
cluster_info.rs enforces that LAST_SHRED_IN_SLOT is also DATA_COMPLETE_SHRED (#24892) 2022-05-02 23:33:53 +00:00
cluster_nodes.rs enforces that LAST_SHRED_IN_SLOT is also DATA_COMPLETE_SHRED (#24892) 2022-05-02 23:33:53 +00:00
consensus.rs Update all BankForks methods to return owned values (#24801) 2022-04-28 18:51:00 +00:00
gen_keys.rs Reformat imports to a consistent style for imports 2021-12-03 09:19:13 -08:00
retransmit_stage.rs convert std::sync::mpsc to crossbeam_channel (#22264) 2022-01-11 02:44:46 -08:00
shredder.rs enforces that LAST_SHRED_IN_SLOT is also DATA_COMPLETE_SHRED (#24892) 2022-05-02 23:33:53 +00:00
sigverify_stage.rs Separate sigverify metrics for each verifier (#24744) 2022-04-28 01:16:17 -07:00