OlinCoin
Test
utxo_to_tx.h
1#pragma once
2
3#include "utxo_pool.h"
4
5typedef struct {
7 unsigned char tx_hash[TX_HASH_LEN];
8 UT_hash_handle hh;
10
11UTXOToTx *utxo_to_tx;
12
16void utxo_to_tx_init();
17
26int utxo_to_tx_add(unsigned char *utxo_tx_hash, unsigned int vout, unsigned char *tx_hash);
27
38int utxo_to_tx_add_tx(Transaction *tx);
39
47int utxo_to_tx_remove(unsigned char *utxo_tx_hash, unsigned int vout);
48
57int utxo_to_tx_find(unsigned char *dest, unsigned char *utxo_tx_hash, unsigned int vout);
58
68UTXOToTx *utxo_to_tx_find_node(unsigned char *utxo_tx_hash, unsigned int vout);
69
79UTXOToTx *utxo_to_tx_find_node_key(UTXOPoolKey *key);
Definition: base_tx.h:19
Definition: utxo_pool.h:9
Definition: utxo_to_tx.h:5