mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
fixed direction of getlogsg
This commit is contained in:
parent
d5551aa74a
commit
4455ddf308
1 changed files with 4 additions and 4 deletions
|
|
@ -182,10 +182,10 @@ public:
|
||||||
Json::Value temp;
|
Json::Value temp;
|
||||||
for (uint32_t i = u.log.data.size(); i > 0; --i)
|
for (uint32_t i = u.log.data.size(); i > 0; --i)
|
||||||
{
|
{
|
||||||
temp[i - 1]["to"] = u.log.data[u.log.data.size() - i - 1].to;
|
temp[i - 1]["to"] = u.log.data[u.log.data.size() - i].to;
|
||||||
temp[i - 1]["from"] = u.log.data[u.log.data.size() - i - 1].from;
|
temp[i - 1]["from"] = u.log.data[u.log.data.size() - i].from;
|
||||||
temp[i - 1]["amount"] = (Json::UInt)u.log.data[u.log.data.size() - i - 1].amount;
|
temp[i - 1]["amount"] = (Json::UInt)u.log.data[u.log.data.size() - i].amount;
|
||||||
temp[i - 1]["time"] = (Json::UInt64)u.log.data[u.log.data.size() - i - 1].time;
|
temp[i - 1]["time"] = (Json::UInt64)u.log.data[u.log.data.size() - i].time;
|
||||||
}
|
}
|
||||||
res = std::move(temp);
|
res = std::move(temp);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue