mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 08:12:12 +11:00
🚧🐎 preparing to use FBE, in the meantime its 99% faster
This commit is contained in:
parent
4b5e5d930c
commit
09911d5496
1 changed files with 3 additions and 2 deletions
|
|
@ -10,16 +10,17 @@ struct Log
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
ChangeFlag log_flag;
|
ChangeFlag log_flag;
|
||||||
Json::Value log_snapshot;
|
std::string log_snapshot;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Log() noexcept;
|
||||||
#if MAX_LOG_SIZE == 1
|
#if MAX_LOG_SIZE == 1
|
||||||
Transaction data;
|
Transaction data;
|
||||||
#else
|
#else
|
||||||
std::vector<Transaction> data;
|
std::vector<Transaction> data;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const Json::Value &GetLog() noexcept;
|
const std::string &GetLog() noexcept;
|
||||||
void AddTrans(Transaction &&t) noexcept;
|
void AddTrans(Transaction &&t) noexcept;
|
||||||
Json::Value Serialize() const; // to be removed later
|
Json::Value Serialize() const; // to be removed later
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue