forked from rustyrussell/bitcoin-iterate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcache.h
29 lines (24 loc) · 817 Bytes
/
cache.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef BITCOIN_ITERATE_CACHE_H
#define BITCOIN_ITERATE_CACHE_H
#include <ccan/tal/tal.h>
#include "utxo.h"
#include "block.h"
bool read_utxo_cache(const tal_t *ctx,
bool quiet,
struct utxo_map *utxo_map,
const char *cachedir,
const u8 *blockid);
void write_utxo_cache(const struct utxo_map *utxo_map,
bool quiet,
const char *cachedir,
const u8 *blockid);
size_t read_blockchain(tal_t *tal_ctx,
bool quiet, bool use_mmap,
bool use_testnet, char *cachedir, char *blockcache,
char **block_fnames,
struct block_map *block_map, struct block **genesis);
void write_blockcache(struct block_map *block_map,
bool quiet,
const char *cachedir,
const char *blockcache);
#endif /* BITCOIN_ITERATE_CACHE_H */