LCOV - code coverage report
Current view: top level - flamenco/runtime/sysvar - fd_sysvar_slot_history.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 0 4 0.0 %
Date: 2025-03-20 12:08:36 Functions: 0 0 -

          Line data    Source code
       1             : #ifndef HEADER_fd_src_flamenco_runtime_sysvar_fd_slot_history_h
       2             : #define HEADER_fd_src_flamenco_runtime_sysvar_fd_slot_history_h
       3             : 
       4             : #include "../../fd_flamenco_base.h"
       5             : #include "../../types/fd_types.h"
       6             : #include "../context/fd_exec_slot_ctx.h"
       7             : #include "../context/fd_exec_epoch_ctx.h"
       8             : 
       9             : 
      10           0 : #define FD_SLOT_HISTORY_SLOT_FOUND     (0)
      11           0 : #define FD_SLOT_HISTORY_SLOT_FUTURE    (-1)
      12           0 : #define FD_SLOT_HISTORY_SLOT_NOT_FOUND (-2)
      13           0 : #define FD_SLOT_HISTORY_SLOT_TOO_OLD   (-3)
      14             : 
      15             : /* The slot history sysvar contains a bit-vector indicating which slots have been processed in the current epoch. */
      16             : 
      17             : /* Initialize the slot history sysvar account. */
      18             : void
      19             : fd_sysvar_slot_history_init( fd_exec_slot_ctx_t * slot_ctx,
      20             :                              fd_spad_t *          runtime_spad );
      21             : 
      22             : /* Update the slot history sysvar account. This should be called at the end of every slot, after execution has concluded. */
      23             : int
      24             : fd_sysvar_slot_history_update( fd_exec_slot_ctx_t * slot_ctx,
      25             :                                fd_spad_t *          runtime_spad );
      26             : 
      27             : /* Reads the current value of the slot history sysvar */
      28             : fd_slot_history_t *
      29             : fd_sysvar_slot_history_read( fd_acc_mgr_t *  acc_mgr,
      30             :                              fd_funk_txn_t * funk_txn,
      31             :                              fd_spad_t *     spad );
      32             : 
      33             : int
      34             : fd_sysvar_slot_history_find_slot( fd_slot_history_t const * history,
      35             :                                   ulong                     slot );
      36             : #endif /* HEADER_fd_src_flamenco_runtime_sysvar_fd_slot_history_h */

Generated by: LCOV version 1.14