Line data Source code
1 : #ifndef HEADER_fd_src_flamenco_runtime_sysvar_fd_recent_hashes_h 2 : #define HEADER_fd_src_flamenco_runtime_sysvar_fd_recent_hashes_h 3 : 4 : #include "../../fd_flamenco_base.h" 5 : 6 : /* FD_SYSVAR_RECENT_HASHES_CAP is the max number of block hash entries 7 : the recent blockhashes sysvar will include. 8 : 9 : https://github.com/anza-xyz/agave/blob/6398ddf6ab8a8f81017bf675ab315a70067f0bf0/sdk/program/src/sysvar/recent_blockhashes.rs#L32 10 : */ 11 : 12 108786 : #define FD_SYSVAR_RECENT_HASHES_CAP (150UL) 13 : 14 : FD_PROTOTYPES_BEGIN 15 : 16 : /* The recent hashes sysvar */ 17 : 18 : /* Initialize the recent hashes sysvar account. */ 19 : void 20 : fd_sysvar_recent_hashes_init( fd_exec_slot_ctx_t * slot_ctx ); 21 : 22 : /* Update the recent hashes sysvar account. This should be called at the start of every slot, before execution commences. */ 23 : void 24 : fd_sysvar_recent_hashes_update( fd_exec_slot_ctx_t * slot_ctx ); 25 : 26 : FD_PROTOTYPES_END 27 : 28 : #endif /* HEADER_fd_src_flamenco_runtime_sysvar_fd_recent_hashes_h */