Distinguish between shred type in shred fetch stage duplicate filter (#10068)

* Shred type check

* Test
This commit is contained in:
sakridge
2020-05-15 13:23:56 -07:00
committed by GitHub
parent c4a096d8d4
commit f562ed4cc8
2 changed files with 69 additions and 13 deletions

View File

@ -41,6 +41,7 @@ pub const SIZE_OF_DATA_SHRED_PAYLOAD: usize = PACKET_DATA_SIZE
- SIZE_OF_DATA_SHRED_HEADER
- SIZE_OF_DATA_SHRED_IGNORED_TAIL;
pub const OFFSET_OF_SHRED_TYPE: usize = SIZE_OF_SIGNATURE;
pub const OFFSET_OF_SHRED_SLOT: usize = SIZE_OF_SIGNATURE + SIZE_OF_SHRED_TYPE;
pub const OFFSET_OF_SHRED_INDEX: usize = OFFSET_OF_SHRED_SLOT + SIZE_OF_SHRED_SLOT;