MCPcopy Create free account
hub / github.com/citp/BlockSci / updateAddressDB

Function updateAddressDB

tools/parser/main.cpp:223–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void updateAddressDB(const ParserConfigurationBase &config) {
224 blocksci::ChainAccess chain{config.dataConfig.chainDirectory(), config.dataConfig.blocksIgnored, config.dataConfig.errorOnReorg};
225 blocksci::ScriptAccess scripts{config.dataConfig.scriptsDirectory()};
226
227 blocksci::State updateState{chain, scripts};
228 AddressDB db(config, config.dataConfig.addressDBFilePath());
229
230 std::cout << "Updating address index\n";
231
232 db.runUpdate(updateState);
233}
234
235ParserConfigurationBase getBaseConfig(const filesystem::path &configPath) {
236 if (!configPath.exists()) {

Callers 2

updateChainFunction · 0.85
mainFunction · 0.85

Calls 4

chainDirectoryMethod · 0.80
scriptsDirectoryMethod · 0.80
addressDBFilePathMethod · 0.80
runUpdateMethod · 0.80

Tested by

no test coverage detected