17class LedgerCacheFile {
20 uint32_t version = kVERSION;
23 uint64_t deletedSize{};
27 static constexpr uint32_t kVERSION = 1;
34 uint32_t latestSeq{0};
42 LedgerCacheFile(std::string path);
44 std::expected<void, std::string>
45 write(DataView dataView);
47 std::expected<Data, std::string>
48 read(uint32_t minLatestSequence);