36class LedgerCacheFile {
39 uint32_t version = kVERSION;
42 uint64_t deletedSize{};
46 static constexpr uint32_t kVERSION = 1;
53 uint32_t latestSeq{0};
61 LedgerCacheFile(std::string path);
63 std::expected<void, std::string>
64 write(DataView dataView);
66 std::expected<Data, std::string>
67 read(uint32_t minLatestSequence);