🚧🐎 preparing to use FBE, in the meantime its 99% faster

This commit is contained in:
EntireTwix 2021-07-06 20:28:37 -07:00
parent 4b5e5d930c
commit 09911d5496

View file

@ -10,16 +10,17 @@ struct Log
{
private:
ChangeFlag log_flag;
Json::Value log_snapshot;
std::string log_snapshot;
public:
Log() noexcept;
#if MAX_LOG_SIZE == 1
Transaction data;
#else
std::vector<Transaction> data;
#endif
const Json::Value &GetLog() noexcept;
const std::string &GetLog() noexcept;
void AddTrans(Transaction &&t) noexcept;
Json::Value Serialize() const; // to be removed later
};