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

          Line data    Source code
       1             : #ifndef HEADER_fd_src_flamenco_runtime_fd_runtime_init_h
       2             : #define HEADER_fd_src_flamenco_runtime_fd_runtime_init_h
       3             : 
       4             : /* fd_runtime_init.h provides APIs for backing up and restoring a Solana
       5             :    runtime environment.  This file must not depend on fd_executor.h. */
       6             : 
       7             : #include "../fd_flamenco_base.h"
       8             : #include "../../funk/fd_funk_rec.h"
       9             : 
      10             : /* FD_BLOCK_SLOT_BANK_TYPE stores fd_slot_bank_t bincode encoded */
      11           0 : #define FD_BLOCK_SLOT_BANK_TYPE ((uchar)6)
      12             : 
      13             : /* FD_BLOCK_EPOCH_BANK_TYPE stores fd_epoch_bank_t bincode encoded */
      14           0 : #define FD_BLOCK_EPOCH_BANK_TYPE ((uchar)7)
      15             : 
      16           0 : #define FD_RUNTIME_ENC_BINCODE 0xB13C0DEFU /* classic bincode encoding */
      17           0 : #define FD_RUNTIME_ENC_ARCHIVE 0xA3C417EAU /* archival encoding */
      18             : 
      19             : FD_PROTOTYPES_BEGIN
      20             : 
      21             : fd_funk_rec_key_t
      22             : fd_runtime_epoch_bank_key( void );
      23             : 
      24             : fd_funk_rec_key_t
      25             : fd_runtime_slot_bank_key( void );
      26             : 
      27             : int
      28             : fd_runtime_save_slot_bank( fd_exec_slot_ctx_t * slot_ctx );
      29             : 
      30             : int
      31             : fd_runtime_save_epoch_bank( fd_exec_slot_ctx_t * slot_ctx );
      32             : 
      33             : int
      34             : fd_runtime_save_slot_bank_archival( fd_exec_slot_ctx_t * slot_ctx );
      35             : 
      36             : int
      37             : fd_runtime_save_epoch_bank_archival( fd_exec_slot_ctx_t * slot_ctx );
      38             : 
      39             : /* fd_features_restore loads all known feature accounts from the
      40             :    accounts database.  This is used when initializing bank from a
      41             :    snapshot. */
      42             : 
      43             : void
      44             : fd_features_restore( fd_exec_slot_ctx_t * slot_ctx );
      45             : 
      46             : /* Recover slot_bank and epoch_bnck from funky */
      47             : void
      48             : fd_runtime_recover_banks( fd_exec_slot_ctx_t * slot_ctx, int delete_first, int clear_first );
      49             : 
      50             : void
      51             : fd_runtime_delete_banks( fd_exec_slot_ctx_t * slot_ctx );
      52             : 
      53             : FD_PROTOTYPES_END
      54             : 
      55             : #endif /* HEADER_fd_src_flamenco_runtime_fd_runtime_init_h */

Generated by: LCOV version 1.14