LCOV - code coverage report
Current view: top level - flamenco/genesis - fd_genesis_cluster.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 1 6 16.7 %
Date: 2025-03-20 12:08:36 Functions: 0 0 -

          Line data    Source code
       1             : #ifndef HEADER_fd_src_flamenco_genesis_fd_genesis_cluster_h
       2             : #define HEADER_fd_src_flamenco_genesis_fd_genesis_cluster_h
       3             : 
       4             : #include "../types/fd_types.h"
       5             : 
       6           9 : #define FD_CLUSTER_UNKNOWN      (0UL)
       7           0 : #define FD_CLUSTER_PYTHTEST     (1UL)
       8           0 : #define FD_CLUSTER_TESTNET      (2UL)
       9           0 : #define FD_CLUSTER_DEVNET       (3UL)
      10           0 : #define FD_CLUSTER_PYTHNET      (4UL)
      11           0 : #define FD_CLUSTER_MAINNET_BETA (5UL)
      12             : 
      13             : /* Convert a base58 encoded hash to a FD_CLUSTER_* macro.
      14             : 
      15             :    genesis_hash should point to a non-NULL cstr.  It expects a
      16             :    base58 encoded hash, which will be compared against known hash
      17             :    values for public clusters.  If a match isn't found, this function
      18             :    returns FD_CLUSTER_UNKNOWN */
      19             : 
      20             : FD_FN_PURE ulong
      21             : fd_genesis_cluster_identify( char const * genesis_hash );
      22             : 
      23             : /* Convert a FD_CLUSTER_* macro to its corresponding cstr.
      24             : 
      25             :    This function returns the human-readable name associated with cluster
      26             :    as a cstr with a static lifetime.  For example, FD_CLUSTER_TESTNET
      27             :    resolves to "testnet".  If cluster is not a FD_CLUSTER_* macro, 
      28             :    this function returns "unknown" */
      29             : 
      30             : FD_FN_CONST char const *
      31             : fd_genesis_cluster_name( ulong cluster );
      32             : 
      33             : #endif /* HEADER_fd_src_flamenco_genesis_fd_genesis_cluster_h */

Generated by: LCOV version 1.14