#pragma once #include // to be removed later #include #include #include "ccash_config.hpp" #include "change_flag.h" #include "transaction.h" 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 &GetLog() noexcept; void AddTrans(Transaction &&t) noexcept; Json::Value Serialize() const; // to be removed later };