Line data Source code
1 : #ifndef HEADER_fd_src_discof_backtest_fd_backtest_rocksdb_h 2 : #define HEADER_fd_src_discof_backtest_fd_backtest_rocksdb_h 3 : 4 : #include "../../util/fd_util_base.h" 5 : 6 : struct fd_backtest_rocksdb_private; 7 : typedef struct fd_backtest_rocksdb_private fd_backtest_rocksdb_t; 8 : 9 : #if FD_HAS_ROCKSDB 10 : 11 0 : #define FD_BACKTEST_ROCKSDB_MAGIC (0xF17EDA2CE58AC810) /* FIREDANCE BACKT V0 */ 12 : 13 : FD_PROTOTYPES_BEGIN 14 : 15 : FD_FN_CONST ulong 16 : fd_backtest_rocksdb_align( void ); 17 : 18 : FD_FN_CONST ulong 19 : fd_backtest_rocksdb_footprint( void ); 20 : 21 : void * 22 : fd_backtest_rocksdb_new( void * shmem, 23 : char const * path ); 24 : 25 : fd_backtest_rocksdb_t * 26 : fd_backtest_rocksdb_join( void * shdb ); 27 : 28 : void 29 : fd_backtest_rocksdb_init( fd_backtest_rocksdb_t * db, 30 : ulong root_slot ); 31 : 32 : int 33 : fd_backtest_rocksdb_next_root_slot( fd_backtest_rocksdb_t * db, 34 : ulong * slot_out, 35 : ulong * shred_cnt_out ); 36 : 37 : int 38 : fd_backtest_rocksdb_next_dead_slot( fd_backtest_rocksdb_t * db, 39 : ulong * slot_out, 40 : ulong * shred_cnt_out ); 41 : 42 : void const * 43 : fd_backtest_rocksdb_shred( fd_backtest_rocksdb_t * db, 44 : ulong slot, 45 : ulong shred_idx ); 46 : 47 : uchar const * 48 : fd_backtest_rocksdb_bank_hash( fd_backtest_rocksdb_t * db, 49 : ulong slot ); 50 : 51 : FD_PROTOTYPES_END 52 : 53 : #endif /* FD_HAS_ROCKSDB */ 54 : 55 : #endif /* HEADER_fd_src_discof_backtest_fd_backtest_rocksdb_h */