#pragma once #include // to be removed later #include #include #include "ccash_config.hpp" #include "change_flag.h" #include "transaction.h" #include "simdjson.h" using namespace simdjson; struct Log { private: ChangeFlag log_flag; std::string log_snapshot; public: #if MAX_LOG_SIZE == 1 Transaction data; #else std::vector data; #endif const std::string &GetLogs() noexcept; void AddTrans(const Transaction &t) noexcept; Json::Value Serialize() const; // to be removed later };