🐛 MAX_LOG_SIZE == 1 wasnt updated

This commit is contained in:
EntireTwix 2021-07-13 21:04:33 -07:00
parent 4a56d57314
commit 6c99d32a64

View file

@ -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
{