mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
slight change
This commit is contained in:
parent
899851bec3
commit
8d5a0aeb52
3 changed files with 42 additions and 9 deletions
|
|
@ -4,13 +4,6 @@
|
|||
"address": "0.0.0.0",
|
||||
"port": 80,
|
||||
"https": false
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"port": 443,
|
||||
"https": true,
|
||||
"cert": "",
|
||||
"key": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ struct Log
|
|||
void AddTrans(Transaction &&v)
|
||||
{
|
||||
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
|
||||
{
|
||||
|
|
|
|||
40
users.json
40
users.json
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue