mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐛 empty log responds with ']'
This commit is contained in:
parent
eb282de108
commit
66b200be27
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ void Log::AddTrans(const Transaction &t) noexcept
|
||||||
|
|
||||||
const std::string &Log::GetLogs() noexcept
|
const std::string &Log::GetLogs() noexcept
|
||||||
{
|
{
|
||||||
if (log_flag.GetChangeState()) //if there are changes
|
if (log_flag.GetChangeState() && data.size()) //if there are changes
|
||||||
{
|
{
|
||||||
//re-generate snapshot
|
//re-generate snapshot
|
||||||
//({\"amount\":1,\"from\":\"\",\"time\":1625943626,\"to\":\"\"}, + (2*max_name_size)+10+10) * # of logs) + 1
|
//({\"amount\":1,\"from\":\"\",\"time\":1625943626,\"to\":\"\"}, + (2*max_name_size)+10+10) * # of logs) + 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue