LCOV - code coverage report
Current view: top level - flamenco/runtime/sysvar - fd_sysvar_stake_history.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 1 1 100.0 %
Date: 2024-11-13 11:58:15 Functions: 0 0 -

          Line data    Source code
       1             : #ifndef HEADER_fd_src_flamenco_runtime_fd_sysvar_stake_history_h
       2             : #define HEADER_fd_src_flamenco_runtime_fd_sysvar_stake_history_h
       3             : 
       4             : #include "../../fd_flamenco_base.h"
       5             : #include "../../types/fd_types.h"
       6             : 
       7             : /* FD_SYSVAR_STAKE_HISTORY_CAP is the max number of entries that the
       8             :    "stake history" sysvar will include.
       9             :    
      10             :    https://github.com/anza-xyz/agave/blob/6398ddf6ab8a8f81017bf675ab315a70067f0bf0/sdk/program/src/stake_history.rs#L12 */
      11             : 
      12      674544 : #define FD_SYSVAR_STAKE_HISTORY_CAP (512UL)
      13             : 
      14             : FD_PROTOTYPES_BEGIN
      15             : 
      16             : /* The stake history sysvar contains the history of cluster-wide activations and de-activations per-epoch. Updated at the start of each epoch. */
      17             : 
      18             : /* Initialize the stake history sysvar account. */
      19             : void
      20             : fd_sysvar_stake_history_init( fd_exec_slot_ctx_t * slot_ctx );
      21             : 
      22             : /* Update the stake history sysvar account - called during epoch boundary*/
      23             : void
      24             : fd_sysvar_stake_history_update( fd_exec_slot_ctx_t *       slot_ctx,
      25             :                                 fd_stake_history_entry_t * entry );
      26             : 
      27             : FD_PROTOTYPES_END
      28             : 
      29             : #endif /* HEADER_fd_src_flamenco_runtime_fd_sysvar_stake_history_h */

Generated by: LCOV version 1.14