7#define UTXO_POOL_KEY_LEN TX_HASH_LEN+sizeof(((Transaction*)0)->inputs->prev_utxo_output)
10 unsigned char tx_hash[TX_HASH_LEN];
21leveldb_t *utxo_pool_db;
28int utxo_pool_init_leveldb(
char *db_env);
39int make_utxo_pool_key_with_hash(
unsigned char *dest,
size_t *len,
unsigned char *hash,
unsigned int vout);
50int make_utxo_pool_key(
unsigned char *dest,
size_t *len,
Transaction *tx,
unsigned int vout);
59int utxo_pool_add_leveldb(
Transaction *tx,
unsigned int vout);
69int utxo_pool_find_leveldb(
UTXO **found_utxo,
unsigned char *tx_hash,
unsigned int vout);
78int utxo_pool_remove_leveldb(
unsigned char *tx_hash,
unsigned int vout);
86int utxo_pool_count(
unsigned int *num_entries);
94void print_utxo(
UTXO *utxo,
char *prefix);
101void print_utxo_hashmap(
char *prefix);
Definition: utxo_pool.h:9
Definition: utxo_pool.h:14