| 221 | } |
| 222 | |
| 223 | void 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 | |
| 235 | ParserConfigurationBase getBaseConfig(const filesystem::path &configPath) { |
| 236 | if (!configPath.exists()) { |
no test coverage detected