Line data Source code
1 : #ifndef HEADER_fd_src_discof_backtest_fd_shredcap_h 2 : #define HEADER_fd_src_discof_backtest_fd_shredcap_h 3 : 4 : /* fd_shredcap.h provides C definitions for shredcap v0.2 file format 5 : bits. */ 6 : 7 : #include "../../util/fd_util_base.h" 8 : 9 : #define FD_SHREDCAP_V0_IFNAME "shredcap0" 10 : 11 0 : #define FD_SHREDCAP_TYPE_BANK_HASH_V0 (0x1u) 12 0 : #define FD_SHREDCAP_TYPE_ROOT_SLOT_V0 (0x2u) 13 : 14 : struct __attribute__((packed)) fd_shredcap_bank_hash_v0 { 15 : ulong slot; 16 : uchar bank_hash[32]; 17 : ulong data_shred_cnt; 18 : }; 19 : typedef struct fd_shredcap_bank_hash_v0 fd_shredcap_bank_hash_v0_t; 20 : 21 : struct __attribute__((packed)) fd_shredcap_root_slot_v0 { 22 : ulong slot; 23 : }; 24 : typedef struct fd_shredcap_root_slot_v0 fd_shredcap_root_slot_v0_t; 25 : 26 : #endif /* HEADER_fd_src_discof_backtest_fd_shredcap_h */