From 6c99d32a641395f93f71b298fc0a28ff0b73e313 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Tue, 13 Jul 2021 21:04:33 -0700 Subject: [PATCH] :bug::zap: MAX_LOG_SIZE == 1 wasnt updated --- src/log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.cpp b/src/log.cpp index 06185cc..2d91ac4 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -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 {