| 65 | } |
| 66 | |
| 67 | void 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 | |
| 77 | filesystem::path ParserConfiguration<FileTag>::pathForBlockFile(int fileNum) const { |
| 78 | std::ostringstream convert; |
nothing calls this directly
no test coverage detected