mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-18 09:02:14 +11:00
Serialize dont log 0 amount
This commit is contained in:
parent
c833f66d9f
commit
742396c32e
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ struct Log
|
||||||
Json::Value Serialize() const
|
Json::Value Serialize() const
|
||||||
{
|
{
|
||||||
Json::Value res;
|
Json::Value res;
|
||||||
for (uint32_t i = 0; i < end; ++i)
|
for (uint32_t i = 0; i < end && data[i].amount; ++i)
|
||||||
{
|
{
|
||||||
res[i]["to"] = data[i].to;
|
res[i]["to"] = data[i].to;
|
||||||
res[i]["from"] = data[i].from;
|
res[i]["from"] = data[i].from;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue