🐛 Log Size reduction will load correctly now

This commit is contained in:
EntireTwix 2021-05-19 14:27:29 -07:00
parent 517f6dfcbe
commit 59417ccebf
2 changed files with 8 additions and 1 deletions

View file

@ -4,6 +4,13 @@
"address": "0.0.0.0",
"port": 80,
"https": false
},
{
"address": "0.0.0.0",
"port": 443,
"https": true,
"cert": "",
"key": ""
}
]
}

View file

@ -37,7 +37,7 @@ struct User
{
log.data.resize(log_j.size()+pre_log_size);
log.end = log_j.size();
for(uint32_t i = 0; i < log_j.size(); ++i)
for(uint32_t i = 0; i < log_j.size() && i < max_log_size; ++i)
{
log.data[i] = std::move(Transaction(log_j[i]["from"].asCString(), log_j[i]["to"].asCString(), log_j[i]["balance"].asUInt()));
}