LCOV - code coverage report
Current view: top level - discof/backup - fd_txncache_writer.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 1 1 100.0 %
Date: 2026-08-14 04:54:57 Functions: 0 0 -

          Line data    Source code
       1             : #ifndef HEADER_fd_src_discof_backup_fd_txncache_writer_h
       2             : #define HEADER_fd_src_discof_backup_fd_txncache_writer_h
       3             : 
       4             : #include "../../flamenco/runtime/fd_txncache.h"
       5             : 
       6             : struct fd_txnhash_20 { uchar b[20]; };
       7             : typedef struct fd_txnhash_20 fd_txnhash_20_t;
       8             : 
       9             : struct fd_txncache_writer {
      10             :   uint              state;
      11             :   fd_txncache_t *   tc;
      12             :   ulong             slot;
      13             :   ulong             snapshot_root_idx;
      14             : 
      15             :   ulong             root_iter;
      16             :   ulong             page_idx;
      17             :   ulong             txn_idx;
      18             :   ulong             txns_in_page;
      19             : };
      20             : 
      21             : typedef struct fd_txncache_writer fd_txncache_writer_t;
      22             : 
      23             : FD_PROTOTYPES_BEGIN
      24             : 
      25             : fd_txncache_writer_t *
      26             : fd_txncache_writer_init( fd_txncache_writer_t * writer,
      27             :                          fd_txncache_t *        tc,
      28             :                          ulong                  slot );
      29             : 
      30          30 : #define FD_TXNCACHE_WRITER_BUF_MIN (32UL<<20)
      31             : 
      32             : ulong
      33             : fd_txncache_writer_serialize( fd_txncache_writer_t * enc,
      34             :                               uchar                  out_buf[ FD_TXNCACHE_WRITER_BUF_MIN ],
      35             :                               ulong                  buf_sz );
      36             : 
      37             : ulong
      38             : fd_txncache_writer_serialized_sz( fd_txncache_t * tc,
      39             :                                   ulong           slot );
      40             : 
      41             : FD_PROTOTYPES_END
      42             : 
      43             : #endif /* HEADER_fd_src_discof_backup_fd_txncache_writer_h */

Generated by: LCOV version 1.14