Commit graph

354 commits

Author SHA1 Message Date
EntireTwix
c7695dd6db made responses more inuitive for vpass and admin/vpass & fixed send funds bug 2021-06-12 20:39:07 -07:00
EntireTwix
eed41a1de1 🐛 fixed unintuitive design of AddUser having password in body 2021-06-10 21:30:30 -07:00
EntireTwix
9bcc9b13b6 made string_view to work with PASS_HEADER 2021-06-10 20:19:31 -07:00
EntireTwix
503462508f reverted xxhash changes 2021-06-10 14:11:51 -07:00
EntireTwix
cc23bc8142 🐎 made xxhash dynamically linked 2021-06-10 13:14:12 -07:00
EntireTwix
84f934f39d Split .hpp into .h and .cpp 2021-06-10 01:57:18 -07:00
EntireTwix
b1e8021821 fixed header for now renamed endpoint.h 2021-06-10 00:02:29 -07:00
EntireTwix
437c8b5f20 updated logs and fixed renamed header 2021-06-10 00:02:02 -07:00
EntireTwix
179deb85cc re-ordered maps 2021-06-09 23:49:07 -07:00
EntireTwix
01bf8bea9a made methods GET 2021-06-09 22:00:50 -07:00
EntireTwix
c0439ed6a8 renamed to error responses 2021-06-09 21:20:58 -07:00
EntireTwix
ba21d5b6aa finished password header 2021-06-09 21:07:06 -07:00
EntireTwix
3b6cf887c8 🐛 saving bug foundg 2021-06-09 20:47:42 -07:00
EntireTwix
803aeb11c3 implementing password in header 2021-06-09 20:44:44 -07:00
EntireTwix
37dbe3a3c6 made system indepdent 2021-06-09 19:36:39 -07:00
EntireTwix
7646d4861e further path changes 2021-06-09 17:33:51 -07:00
EntireTwix
6bc3a38aa2 🐛 load/save error caught 2021-06-09 16:20:21 -07:00
EntireTwix
86ab9a0e8e making error returns uniform 2021-06-09 16:12:33 -07:00
doggo
552c2deca8 Changed initial check to all static assertions 2021-06-07 09:03:04 -05:00
William Katz
a4ffee5992
removed var 2021-06-06 16:54:49 -07:00
William Katz
0947ad9b93
🐛 bugged for loop 2021-06-06 16:53:28 -07:00
doggo
a6c0595f64 Branchless loop init 2021-06-05 22:15:01 -05:00
doggo
84f835e8b8 User log constructor change
Now shifts to the end, is in order but takes only the lotest logs that it is able to.
2021-06-05 21:25:27 -05:00
doggo
6a79ca9c39 request 2021-06-04 21:51:06 -05:00
doggo
a652fded48 Changed logging, added assertations in main, changed user constructor to enforce logging struct reqs 2021-06-04 00:27:47 -05:00
EntireTwix
4455ddf308 fixed direction of getlogsg 2021-06-03 20:23:47 -07:00
EntireTwix
d5551aa74a fixed direction of getlogsg 2021-06-03 20:21:25 -07:00
EntireTwix
acfbb738bb reverted getlog direction 2021-06-03 20:18:07 -07:00
EntireTwix
2e05197791 fixed build issues 2021-06-03 18:39:18 -07:00
William Katz
5095ad0adb
legacy print 2021-06-03 18:24:23 -07:00
William Katz
e6988b8abc
fixed logic 2021-06-03 18:18:13 -07:00
William Katz
c6c08832e7
reverted doggos changes till fixed 2021-06-03 18:17:43 -07:00
William Katz
5e4113bf8f
reversed endpoint to match new internal structure 2021-06-03 18:16:56 -07:00
doggo
69121557a9 User constructor now enforces logging rule 2021-06-03 19:11:32 -05:00
doggo
ab11101611 Idiot changed the variable name 2021-06-03 17:36:44 -05:00
doggo
af51335aa7 Code comments for logs 2021-06-03 16:50:13 -05:00
doggo
a2287a4d36 Logging update, adding transactions optimized 2021-06-03 16:40:08 -05:00
EntireTwix
9e056a640a 🐛 for loop in wrong direction when full 2021-06-03 14:19:15 -07:00
EntireTwix
00ec8397d6 🐛 forgot conditional for if log is has reached max size 2021-06-03 14:09:29 -07:00
EntireTwix
d4179ed063 major simplification via reserve() and capacity() 2021-06-03 13:49:35 -07:00
EntireTwix
a78b4e5b1d 🐎 made getlogs endpoint cache result when disabled 2021-06-03 12:47:50 -07:00
EntireTwix
9101a42b5d slight change 2021-06-03 02:27:35 -07:00
EntireTwix
899851bec3 Simplified and Commented log end->size 2021-06-03 02:19:05 -07:00
EntireTwix
a1988d3bd5 🐛 further bug fixes 2021-06-03 01:54:58 -07:00
EntireTwix
aa7a389de0 🐛 degrading logs bug 2021-06-03 01:17:30 -07:00
EntireTwix
bf1a904c84 :bug 2021-06-01 16:53:22 -07:00
EntireTwix
6927061705 default users.json location 2021-06-01 16:30:29 -07:00
EntireTwix
596ae46286 further safegaurds 2021-06-01 16:17:40 -07:00
EntireTwix
cc3aa0882a 🐛 finally fixed big "end" bug 2021-05-29 21:26:11 -07:00
EntireTwix
742396c32e Serialize dont log 0 amount 2021-05-29 20:28:39 -07:00
EntireTwix
c833f66d9f 🐛 seg fault bug fixed 2021-05-29 20:11:02 -07:00
EntireTwix
56aa6f31f0 Merge branch 'main' of https://github.com/EntireTwix/CCash 2021-05-28 16:20:27 -07:00
EntireTwix
aa91026012 🐎 improved saving for when logs are disabled 2021-05-28 16:20:21 -07:00
William Katz
48a7c34f6f
typo 2021-05-28 02:47:17 -07:00
William Katz
662685a0ac
Update user.hpp 2021-05-28 02:41:13 -07:00
William Katz
dc11416d9a
New time constructor 2021-05-28 02:39:57 -07:00
EntireTwix
239573e246 🐎 improved getlogs endpoint when max log size is 0 2021-05-28 02:25:48 -07:00
EntireTwix
a45dca028c 🐛 fixed logs finally 2021-05-28 02:23:01 -07:00
EntireTwix
efec7d0da9 🐛 fixed last commit 2021-05-28 01:58:56 -07:00
EntireTwix
4a0b7cafa6 🐛 infinite allocate bug 2021-05-28 01:56:16 -07:00
EntireTwix
c95753550c 🐛 fixed a 0 amount bug on logs 2021-05-21 16:17:49 -07:00
EntireTwix
630ea79b17 legacy logging 2021-05-20 22:10:11 -07:00
EntireTwix
b808351621 🐛 Log saving fixed 2021-05-20 22:03:30 -07:00
EntireTwix
0d7b7b5df2 🐛 saving of logs bug fixed 2021-05-20 22:00:52 -07:00
William Katz
5a6ac776bd
🐛 if load data was larger then max size, incorrect resize would occur 2021-05-20 21:29:46 -07:00
EntireTwix
59417ccebf 🐛 Log Size reduction will load correctly now 2021-05-19 14:27:29 -07:00
EntireTwix
517f6dfcbe 🐛 2021-05-19 14:24:43 -07:00
EntireTwix
0d4f49213e 🐛 last commit changes 2021-05-19 14:23:41 -07:00
EntireTwix
dc74da6072 🐎 Max size 0 optimizations 2021-05-19 14:18:01 -07:00
EntireTwix
47319ae412 changed logs prefetch 2021-05-19 13:22:01 -07:00
EntireTwix
4d52d4c821 🐎 reworked memory prefetching for lower memory usage 2021-05-19 13:20:48 -07:00
EntireTwix
74861d8a74 🐛 fixed loading for logs 2021-05-19 13:09:10 -07:00
EntireTwix
eb9b724be5 Logging Saved 2021-05-19 13:06:51 -07:00
William Katz
0a919a07c8
🔥 removed legacy logging 2021-05-12 18:03:40 -07:00
William Katz
00c476954c
removed legacy logging 2021-05-12 18:01:26 -07:00
EntireTwix
8f3f2f0b32 🐛 fixed logging broken 2021-05-03 17:31:21 -07:00
EntireTwix
e241de3cf9 🐛 fixed Log method 2021-04-26 19:00:00 -07:00
EntireTwix
4b969003dc Limited Usernames to 50 chars, expanded log size to 50 2021-04-26 18:45:45 -07:00
EntireTwix
4a62e7e0e4 🐛 json indexing 2021-04-25 13:49:35 -07:00
EntireTwix
c5120b8944 🐎 made logs more cache coherent 2021-04-25 13:29:46 -07:00
EntireTwix
25802ecd0d 🔥 legacy code removed 2021-04-22 12:39:01 -07:00
EntireTwix
94b52f6566 🐛 blank reciever in logs 2021-04-22 11:17:24 -07:00
EntireTwix
a898d6bb02 🐛 -1 fix 2021-04-22 01:13:35 -07:00
EntireTwix
9ec6a5de56 🐛 finally fixed Log bug 2021-04-22 01:08:10 -07:00
EntireTwix
4e442d7abc 0 return re-implemented 2021-04-22 00:52:10 -07:00
EntireTwix
4f657a3ecd 🐛 GetLogs Seg fault out range seg 2021-04-22 00:36:53 -07:00
EntireTwix
7e76c668f2 Docs Updated 2021-04-22 00:18:21 -07:00
EntireTwix
f75f519e64 integrated logs into user struct 2021-04-22 00:11:13 -07:00
EntireTwix
a3d93b5831 🐎 reduced time vars size 2021-04-21 23:25:16 -07:00
EntireTwix
34ced37a71 🐛 fixed sendfunds log 2021-04-21 23:21:50 -07:00
EntireTwix
417f52253b 🐛 concurrent del user & adding log entry would allow a ghost log to be made 2021-04-21 21:42:30 -07:00
EntireTwix
7d38974ba0 🐛 json 64 bug 2021-04-21 21:24:23 -07:00
EntireTwix
9e8ce406ec 🐛 made time 64 bit 2021-04-21 21:22:56 -07:00
EntireTwix
d96364d1f0 time added as part of log 2021-04-21 20:54:49 -07:00
EntireTwix
fcff1c5074 🐛 return 0 for logs wasnt working 2021-04-21 20:30:43 -07:00
EntireTwix
f7b62913cd 🐛 return 0 for logs wasnt working 2021-04-21 20:29:11 -07:00
EntireTwix
5f6a413923 🐛 return 0 for logs wasnt working 2021-04-21 20:28:35 -07:00
EntireTwix
66f29b795f 🐛 many GetLogs Bugs 2021-04-21 20:16:36 -07:00
EntireTwix
cfc99627f8 🐎 reduced by one locking call 2021-04-21 19:30:50 -07:00
EntireTwix
8634c99785 🐎 avoiding one branch 2021-04-21 19:25:47 -07:00
EntireTwix
3965cc0ce3 🐛 fixed last commit 2021-04-21 19:20:40 -07:00
EntireTwix
b0af12d4ce AdminDel/Del now delete logs aswell 2021-04-21 19:17:00 -07:00
EntireTwix
57c755c415 🐛 fixed last commit 2021-04-21 19:11:56 -07:00
EntireTwix
3b36ec90cc 🔥 removed recieving 2021-04-21 19:09:29 -07:00
EntireTwix
fb3000820f 🐎 Logs are only created when first transaction is made 2021-04-21 18:32:20 -07:00
EntireTwix
666258519a 🐛 forgot to add files 2021-04-21 15:59:29 -07:00
EntireTwix
839dd96145 Docs for logs 2021-04-21 15:54:19 -07:00
EntireTwix
588c56a6cc 🐛 fixed state bug 2021-04-21 15:46:37 -07:00
EntireTwix
491f5f9adf 🐎 SendFunds lock time decreased 2021-04-21 15:44:27 -07:00
EntireTwix
32ea81bac2 Intitial Logging Functionality 2021-04-21 15:42:42 -07:00
William Katz
a96e26ff15
Updated comment 2021-04-19 22:42:59 -07:00
EntireTwix
17091ad9d2 🐎 replaced hash function 2021-04-19 06:58:56 -07:00
EntireTwix
50e8ca5c7c 🔥 simplified via removing allusers 2021-04-19 03:56:41 -07:00
EntireTwix
32b6af280e incremented too soon in allusers 2021-04-19 03:42:39 -07:00
EntireTwix
a80f6b5959 fixed allusers 2021-04-19 03:23:46 -07:00
EntireTwix
13cafcca85 fixed allusers 2021-04-19 03:18:53 -07:00
EntireTwix
3f4f9e0fe2 allusers returns balance now 2021-04-19 03:17:18 -07:00
EntireTwix
bd4bd74311 🐛 made admin/vpass POST 2021-04-13 14:06:46 -07:00
EntireTwix
3c5e6e824b tiny html change 2021-04-13 14:04:22 -07:00
EntireTwix
717b598383 updated Docs 2021-04-13 14:01:12 -07:00
EntireTwix
d9b47480e9 Admin Verify Pass 2021-04-13 13:50:06 -07:00
EntireTwix
541717ef7b 🐛 fixed hash loading bug 2021-04-13 10:52:36 -07:00
EntireTwix
bd8bf25b08 🐛 fixed hash loading bug 2021-04-13 10:48:07 -07:00
EntireTwix
e4b6d2987d 🐛 hash deterministic 2021-04-13 09:07:30 -07:00
EntireTwix
068ef5e136 small change 2021-04-13 03:04:26 -07:00
EntireTwix
837e63c03f changed URL of setbal 2021-04-12 15:59:35 -07:00
EntireTwix
7a24065a13 forgot to add xxhash files 2021-04-12 20:17:31 -07:00
EntireTwix
318ebc07bb 🐛 xxhash added 2021-04-12 20:12:23 -07:00
EntireTwix
8cb4702825 🐛 std::hash was deterministic 2021-04-12 20:01:32 -07:00
EntireTwix
aead847df9 🐛 amphigous json cast 2021-04-12 19:09:20 -07:00
EntireTwix
c94c9bdc76 🐎 made users flat as its now <100 bytes 2021-04-12 19:04:00 -07:00
EntireTwix
4f4637eec6 Hashed Passwords 2021-04-12 19:03:13 -07:00
EntireTwix
b167f34b5c 🔥 reverted changes again 2021-04-11 23:17:10 -07:00
EntireTwix
35f1c63c80 🐎 added add/del overhead in exchange for allusers scaling better 2021-04-11 23:08:24 -07:00
EntireTwix
ad814f99b8 🔥 reverted last couple commits 2021-04-11 15:38:52 -07:00
EntireTwix
32c8964647 🐛 legacy line on 170 2021-04-11 14:55:34 -07:00
EntireTwix
104f36f9ec 🐛 AllUsers should be checking for if changes have been made 2021-04-11 14:45:27 -07:00
EntireTwix
706b6a9b70 🐛 oops z 2021-04-11 14:42:00 -07:00
EntireTwix
163e00ad3e 🐛 AdminAddUser modified size_lock_flag out of scope of lock 2021-04-11 14:37:50 -07:00
EntireTwix
2fabf8d8db 🐎 made AllUsers more effecient 2021-04-11 14:28:30 -07:00
EntireTwix
1048ed9353 🐛 long val was being cast to unsigned instead of signed 2021-04-09 19:57:19 -07:00
EntireTwix
7ce3c0f7d4 🐎 removed contains check in SendFunds 2021-04-09 16:47:22 -07:00
EntireTwix
513e0bb643 🐎 SendFunds checks for contains 2021-04-09 16:20:15 -07:00
EntireTwix
61a6d67177 simplified Contains 2021-04-09 02:22:27 -07:00
EntireTwix
447458ca25 🐎 reworked locking based on frequency of fucking called 2021-04-09 02:16:50 -07:00
EntireTwix
c1c077fc81 🐎 AllUsers added & seperated save_l into bal_l/size_l 2021-04-09 01:36:00 -07:00
EntireTwix
81930874db moved state&comment 2021-04-09 00:16:43 -07:00
EntireTwix
00a8e034c8 🐎 stopping sendfund calls to self 2021-04-08 20:24:46 -07:00
EntireTwix
4ffc88b54d 🐛 huge CORS bug 2021-04-07 12:49:15 -07:00
EntireTwix
56bae9cf8a 🐛 finally fixed Json type issues 2021-04-07 00:49:01 -07:00
EntireTwix
be1ff5dc5c reverted last two changes 2021-04-07 00:30:08 -07:00
EntireTwix
2c8c3f2c9f type fixes 2021-04-07 00:22:52 -07:00
EntireTwix
ba30269104 🐛 fix 2021-04-07 00:16:42 -07:00
EntireTwix
bbb6df2088 HTML fix 2021-04-06 12:23:39 -07:00
EntireTwix
0d83a4a9fb fixed HTML 2021-04-06 12:21:25 -07:00
EntireTwix
f64078fbd5 fixed HTML 2021-04-06 12:19:55 -07:00
EntireTwix
78327cec77 re-ordered /help and added setbal 2021-04-06 11:50:38 -07:00
EntireTwix
dc1e145a2d updated HTML help page 2021-04-06 00:19:16 -07:00
EntireTwix
59ec2eb14c changed contains path 2021-04-06 00:17:04 -07:00
EntireTwix
375913c0db made changepass PATCH method 2021-04-05 23:26:35 -07:00
EntireTwix
6187a3b521 path changes 2021-04-05 23:14:45 -07:00
EntireTwix
bc9b820429 re-ordered bank_f methods 2021-04-05 21:05:13 -07:00
EntireTwix
fb7f4b4051 🐎 made contains faster 2021-04-05 21:02:55 -07:00
EntireTwix
872be4857f improved /help 2021-04-05 19:07:53 -07:00
EntireTwix
f2bf8d99c8 made .asCString so it errors when data is false rather then sending 0 as response 2021-04-05 17:26:46 -07:00
EntireTwix
72d4ffe679 made close an admin/ 2021-04-05 17:22:22 -07:00
EntireTwix
a0ae77e729 API side is done 2021-04-05 16:39:58 -07:00
EntireTwix
c32e70c3a5 🐛 fixed bugged http response for Close() 2021-04-04 22:01:20 -07:00
EntireTwix
53b3c2c3ac JsonReturn changes 2021-04-04 21:57:01 -07:00
EntireTwix
6a1fbe23a1 cleaning code 2021-04-04 21:56:22 -07:00
EntireTwix
ef0e4859d1 🚧 adding bindings for API 2021-04-04 21:41:47 -07:00
EntireTwix
769c0762f3 got web framework working 2021-04-04 21:04:05 -07:00
EntireTwix
01bcd2d947 converted forward calls to move 2021-04-04 18:34:16 -07:00
EntireTwix
56fe9d6152 🐛 std::forward changes and ChangePass return 2021-04-04 18:27:38 -07:00
EntireTwix
46c9eb7b7e 🔥 removed Save changes 2021-04-04 18:21:27 -07:00
EntireTwix
7c4da5771f Contains 2021-04-04 18:13:40 -07:00
EntireTwix
b80ff10c5b ChangePassword 2021-04-04 17:51:13 -07:00
EntireTwix
5520d508ff VerifyPassword 2021-04-04 17:45:23 -07:00
EntireTwix
18424c64c3 🐎 reduced time that Save() needs lock 2021-04-04 17:20:04 -07:00
William Katz
2d315625cd
Removed debugging line 2021-04-03 11:01:10 -10:00
William Katz
795671d685
🐛 del user funcs didn't grab save lock 2021-04-02 22:59:41 -10:00
William Katz
34873d702b
🐛 Send funds wasn't grabbing save_lock as shared 2021-04-02 22:58:28 -10:00
EntireTwix
950a74dff1 🐛 forgot header <shared_mutex> 2021-04-03 01:06:29 -07:00
EntireTwix
4026d7c632 loading & admin pass 2021-04-03 00:24:51 -07:00
EntireTwix
d2fcf4f863 🐎 made add/del user based on shared lock system for Save() 2021-04-02 23:55:31 -07:00
EntireTwix
ea511c71b2 made Add/Del User operations locking as to allow Saving to be thread safe 2021-04-02 14:57:11 -07:00
EntireTwix
8ebe23fa15 Saving/Loading 2021-04-02 14:38:39 -07:00
EntireTwix
92a48c5f0c small admin add user changes 2021-04-02 13:21:07 -07:00
EntireTwix
ffce6bf2f4 removed header 2021-04-02 12:51:34 -07:00
EntireTwix
d263ae4966 🐎 massively reduced DelUser functions 2021-04-02 12:41:05 -07:00
EntireTwix
1f6378ad92 🐛 bug fixes and implementing Bank API 2021-04-02 12:32:00 -07:00
EntireTwix
e4c262bd79 🐛 Send funds should return false if refunded 2021-04-02 11:36:20 -07:00
EntireTwix
efb769ee29 🚧 bank class and re-structure 2021-04-02 02:12:41 -07:00
EntireTwix
80ffdff068 added drogon 2021-04-02 01:28:19 -07:00
EntireTwix
0ed92a63ef made some member funcs const 2021-04-01 21:53:36 -07:00
EntireTwix
1d5f93479b 🐎 forgot GetBal & VerifyPass in last commit 2021-04-01 21:25:59 -07:00
EntireTwix
030d5d4a3e 🐎 removed thread safety locks as the phmap will handle thread safety 2021-04-01 21:24:29 -07:00
EntireTwix
dd09559253 added submodule phmap 2021-04-01 21:06:16 -07:00
EntireTwix
2c35b3abc8 💡 Comments 2021-04-01 20:38:46 -07:00
EntireTwix
33c3abf84b 🐛 ChangePass fix didnt push??? 2021-04-01 20:15:17 -07:00