use of snowblossom.lib.trie.TrieDBMap in project snowblossom by snowblossomcoin.
the class DB method open.
public void open() throws Exception {
block_map = new ProtoDBMap(Block.newBuilder().build().getParserForType(), prov.openMap("block"));
tx_map = new ProtoDBMap(Transaction.newBuilder().build().getParserForType(), prov.openMap("tx"));
block_summary_map = new ProtoDBMap(BlockSummary.newBuilder().build().getParserForType(), prov.openMap("blocksummary"));
block_header_map = new ProtoDBMap(BlockHeader.newBuilder().build().getParserForType(), prov.openMap("bh"));
imported_block_map = new ProtoDBMap(ImportedBlock.newBuilder().build().getParserForType(), prov.openMap("ib"));
external_shard_head_map = new ProtoDBMap(ExternalHeadList.newBuilder().build().getParserForType(), prov.openMap("xshm"));
utxo_node_map = prov.openMap("u");
block_height_map = prov.openMap("height");
special_map = prov.openMap("special");
chain_index_map = prov.openMap("cit");
best_block_map = prov.openMap("bbm");
trust_map = prov.openMap("trust");
chain_index_trie = new HashedTrie(new TrieDBMap(chain_index_map), true, true);
utxo_hashed_trie = new HashedTrie(new TrieDBMap(utxo_node_map), true, false);
try {
// Lobstack for example doesn't have multation map set implemented
// but most htings don't need this so whatever
special_map_set = prov.openMutationMapSet("special_map_set");
child_block_map_set = prov.openMutationMapSet("cbms");
} catch (Throwable t) {
}
if (config.getBoolean("addr_index")) {
// This has been swithed to Hashed Trie in chain_index_trie
}
if (config.getBoolean("tx_index")) {
// This has been swithed to Hashed Trie in chain_index_trie
}
}
Aggregations