Define better prototype for "network" functions

This commit is contained in:
Jean-Baptiste Bédrune
2022-02-03 14:01:34 +01:00
parent bf9bfb3ee7
commit 458ef9af52
3 changed files with 14 additions and 14 deletions

View File

@@ -13,8 +13,8 @@ typedef struct network_info_s {
// Returns the current chain id. Defaults to 0 if txType was not found.
uint64_t get_chain_id(void);
// Returns a pointer to the network struct, or NULL if there is none.
network_info_t *get_network(void);
const network_info_t *get_network(void);
// Returns a pointer to the network name, or NULL if there is none.
char *get_network_name(void);
const char *get_network_name(void);
// Returns a pointer to the network ticker, or chainConfig->coinName if there is none.
char *get_network_ticker(void);
const char *get_network_ticker(void);