From acfbb738bbc0900e7ebae45fb57ca2943a7aed5c Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Thu, 3 Jun 2021 20:18:07 -0700 Subject: [PATCH] reverted getlog direction --- include/bank.hpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/include/bank.hpp b/include/bank.hpp index b463923..8b66c55 100644 --- a/include/bank.hpp +++ b/include/bank.hpp @@ -179,15 +179,7 @@ public: } else { - Json::Value temp; - for (uint32_t i = u.log.data.size(); i > 0; --i) - { - temp[i - 1]["to"] = u.log.data[i - 1].to; - temp[i - 1]["from"] = u.log.data[i - 1].from; - temp[i - 1]["amount"] = (Json::UInt)u.log.data[i - 1].amount; - temp[i - 1]["time"] = (Json::UInt64)u.log.data[i - 1].time; - } - res = std::move(temp); + res = u.log.Serialize(); } })) {