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-09-19 04:41:14 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             : 
       8           0 : #define FD_SLOT_HISTORY_SLOT_FOUND     (0)
       9           0 : #define FD_SLOT_HISTORY_SLOT_FUTURE    (-1)
      10           0 : #define FD_SLOT_HISTORY_SLOT_NOT_FOUND (-2)
      11           0 : #define FD_SLOT_HISTORY_SLOT_TOO_OLD   (-3)
      12             : 
      13             : /* The slot history sysvar contains a bit-vector indicating which slots
      14             :    have been processed in the current epoch. */
      15             : 
      16             : /* Initialize the slot history sysvar account. */
      17             : void
      18             : fd_sysvar_slot_history_init( fd_exec_slot_ctx_t * slot_ctx,
      19             :                              fd_spad_t *          runtime_spad );
      20             : 
      21             : /* Update the slot history sysvar account. This should be called at the
      22             :    end of every slot, after execution has concluded. */
      23             : int
      24             : fd_sysvar_slot_history_update( fd_exec_slot_ctx_t * slot_ctx );
      25             : 
      26             : /* fd_sysvar_slot_history_read reads the slot history sysvar from funk.
      27             :    If the account doesn't exist in funk or if the account has zero
      28             :    lamports, this function returns NULL. */
      29             : 
      30             : fd_slot_history_global_t *
      31             : fd_sysvar_slot_history_read( fd_funk_t *     funk,
      32             :                              fd_funk_txn_t * funk_txn,
      33             :                              fd_spad_t *     spad );
      34             : 
      35             : int
      36             : fd_sysvar_slot_history_find_slot( fd_slot_history_global_t const * history,
      37             :                                   ulong                            slot,
      38             :                                   fd_wksp_t *                      wksp );
      39             : #endif /* HEADER_fd_src_flamenco_runtime_sysvar_fd_slot_history_h */

Generated by: LCOV version 1.14