LCOV - code coverage report
Current view: top level - flamenco/leaders - fd_leaders_base.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 1 1 100.0 %
Date: 2025-07-01 05:00:49 Functions: 0 0 -

          Line data    Source code
       1             : #ifndef HEADER_fd_src_flamenco_leaders_fd_leaders_base_h
       2             : #define HEADER_fd_src_flamenco_leaders_fd_leaders_base_h
       3             : 
       4             : #include "../fd_flamenco_base.h"
       5             : #include "../types/fd_types.h"
       6             : 
       7             : #define MAX_SLOTS_PER_EPOCH   432000UL
       8             : #define MAX_PUB_CNT           50000UL
       9      241587 : #define MAX_STAKED_LEADERS    40200UL
      10             : 
      11             : /* Follows message structure in fd_stake_ci_stake_msg_init */
      12             : struct fd_stake_weight_msg_t {
      13             :   ulong             epoch;          /* Epoch for which the stake weights are valid */
      14             :   ulong             staked_cnt;     /* Number of staked nodes */
      15             :   ulong             start_slot;     /* Start slot of the epoch */
      16             :   ulong             slot_cnt;       /* Number of slots in the epoch */
      17             :   ulong             excluded_stake; /* Total stake that is excluded from leader selection */
      18             :   fd_stake_weight_t weights[];      /* Stake weights for each staked node */
      19             : };
      20             : typedef struct fd_stake_weight_msg_t fd_stake_weight_msg_t;
      21             : 
      22             : #endif /* HEADER_fd_src_flamenco_leaders_fd_leaders_base_h */

Generated by: LCOV version 1.14