forked from etotheipi/BitcoinArmory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlockDataManagerConfig.h
More file actions
63 lines (53 loc) · 1.62 KB
/
BlockDataManagerConfig.h
File metadata and controls
63 lines (53 loc) · 1.62 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
////////////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2011-2015, Armory Technologies, Inc. //
// Distributed under the GNU Affero General Public License (AGPL v3) //
// See LICENSE or http://www.gnu.org/licenses/agpl.html //
// //
////////////////////////////////////////////////////////////////////////////////
#ifndef BLOCKDATAMANAGERCONFIG_H
#define BLOCKDATAMANAGERCONFIG_H
#include "BinaryData.h"
enum ARMORY_DB_TYPE
{
ARMORY_DB_BARE, // only raw block data
ARMORY_DB_LITE,
ARMORY_DB_PARTIAL,
ARMORY_DB_FULL,
ARMORY_DB_SUPER,
ARMORY_DB_WHATEVER
};
enum DB_PRUNE_TYPE
{
DB_PRUNE_ALL,
DB_PRUNE_NONE,
DB_PRUNE_WHATEVER
};
struct BlockDataManagerConfig
{
ARMORY_DB_TYPE armoryDbType;
DB_PRUNE_TYPE pruneType;
string blkFileLocation;
string levelDBLocation;
BinaryData genesisBlockHash;
BinaryData genesisTxHash;
BinaryData magicBytes;
void setGenesisBlockHash(const BinaryData &h)
{
genesisBlockHash = h;
}
void setGenesisTxHash(const BinaryData &h)
{
genesisTxHash = h;
}
void setMagicBytes(const BinaryData &h)
{
magicBytes = h;
}
BlockDataManagerConfig();
BlockDataManagerConfig(const BlockDataManagerConfig& in);
BlockDataManagerConfig& operator=(const BlockDataManagerConfig& in);
void selectNetwork(const string &netname);
};
#endif
// kate: indent-width 3; replace-tabs on;