From 15ef40b143808e30fefaca92877905b222768de4 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Wed, 14 Jul 2021 00:05:47 -0700 Subject: [PATCH] :bulb::fire: removing legacy comments --- src/log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log.cpp b/src/log.cpp index 2d91ac4..cd11229 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -6,11 +6,11 @@ void Log::AddTrans(const std::string &from, const std::string &to, uint32_t amou #if MAX_LOG_SIZE == 1 data = std::move(Transaction(from, to, amount, time)); #else - if (data.size() == MAX_LOG_SIZE) // If we hit the max size + if (data.size() == MAX_LOG_SIZE) { data.pop_back(); } - data.emplace_back(from, to, amount, time); // In either case we have space under max length, move to new spot + data.emplace_back(from, to, amount, time); #endif }