10 unsigned char id[BLOCK_HASH_LEN];
16unsigned char top_block_header_hash[BLOCK_HASH_LEN];
17unsigned long chain_height;
20leveldb_t *blockchain_db;
23int blockchain_init_leveldb(
char *db_env);
30int destroy_blockchain();
38int blockchain_add_leveldb(
Block *block);
48int blockchain_find_leveldb(
Block **found_block,
unsigned char *block_hash);
56int blockchain_remove_leveldb(
unsigned char *block_hash);
64int blockchain_count(
unsigned int *num_entries);
71void print_blockchain_hashmap(
char *prefix);
72void pretty_print_blockchain_hashmap();
82int read_top_hash(
unsigned char *dest);
111int write_chain_height();
118int delete_chain_height();
Definition: blockchain.h:9
Definition: base_block.h:12