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

Function from_json

tools/parser/parser_configuration.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void from_json(const json& j, ChainDiskConfiguration& p) {
68 j.at("blockMagic").get_to(p.blockMagic);
69 j.at("hashFuncName").get_to(p.hashFuncName);
70 std::string coinDirString;
71 j.at("coinDirectory").get_to(coinDirString);
72 p.coinDirectory = coinDirString;
73
74 p.resetHashFunc();
75}
76
77filesystem::path ParserConfiguration<FileTag>::pathForBlockFile(int fileNum) const {
78 std::ostringstream convert;

Callers

nothing calls this directly

Calls 1

resetHashFuncMethod · 0.80

Tested by

no test coverage detected