slight change

This commit is contained in:
EntireTwix 2021-06-03 02:23:17 -07:00
parent 899851bec3
commit 8d5a0aeb52
3 changed files with 42 additions and 9 deletions

View file

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

View file

@ -11,7 +11,7 @@ struct Log
void AddTrans(Transaction &&v) void AddTrans(Transaction &&v)
{ {
end += (end < max_log_size); //branchless end += (end < max_log_size); //branchless
if (data.size() <= end && end < max_log_size) //if memory reserved is full and max isnt reached if (data.size() == end && end < max_log_size) //if memory reserved is full and max isnt reached
{ {
if (data.size() + pre_log_size > max_log_size) //if prefetched memory is larger then max if (data.size() + pre_log_size > max_log_size) //if prefetched memory is larger then max
{ {

View file

@ -1,2 +1,42 @@
{ {
} "jolly" :
{
"balance" : 2024,
"log" :
[
{
"amount" : 2,
"from" : "twix",
"time" : 1622711963204,
"to" : "jolly"
},
{
"amount" : 1,
"from" : "twix",
"time" : 1622711903088,
"to" : "jolly"
}
],
"password" : 746744014776526199
},
"twix" :
{
"balance" : 97976,
"log" :
[
{
"amount" : 2,
"from" : "twix",
"time" : 1622711963204,
"to" : "jolly"
},
{
"amount" : 1,
"from" : "twix",
"time" : 1622711903088,
"to" : "jolly"
}
],
"password" : 746744014776526199
}
}