mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐛⚡ MAX_LOG_SIZE == 1 wasnt updated
This commit is contained in:
parent
4a56d57314
commit
6c99d32a64
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ void Log::AddTrans(const std::string &from, const std::string &to, uint32_t amou
|
|||
{
|
||||
log_flag.SetChangesOn();
|
||||
#if MAX_LOG_SIZE == 1
|
||||
data = t;
|
||||
data = std::move(Transaction(from, to, amount, time));
|
||||
#else
|
||||
if (data.size() == MAX_LOG_SIZE) // If we hit the max size
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue