Commit graph

372 commits

Author SHA1 Message Date
EntireTwix
c63bc137c4 conditional compiling no certs when getlogs removed 2021-07-02 22:36:40 -07:00
EntireTwix
290d6da0ef 🔥🎨🐎 removed substr_view after learning string_view::substr is O(1) 2021-07-02 22:36:08 -07:00
EntireTwix
aa71a9f538 configurable save locations in CMake 2021-07-02 19:04:07 -07:00
EntireTwix
1a77ca43dc 🎨 changed admin verification to be account name rather then password 2021-07-02 17:19:11 -07:00
EntireTwix
c9da3eab04 base64 2021-07-02 17:18:37 -07:00
EntireTwix
e7f7f0f698 🎨 changed uint64_t -> XXH64_hash_t 2021-07-02 00:04:05 -07:00
EntireTwix
3e0efa780b 🐎 made noexcept 2021-07-01 23:29:57 -07:00
EntireTwix
d93786f4ff 🚚 moved hash function to seperate header 2021-07-01 23:29:22 -07:00
EntireTwix
1cc1a41561 🚚 moved xxHashStringGen to bank.h 2021-06-29 23:43:10 -07:00
EntireTwix
1f49a9b79a setup xxhash as submodule build 2021-06-29 23:42:14 -07:00
EntireTwix
de694c6ebd admin change password 2021-06-29 22:35:05 -07:00
EntireTwix
c13164dde8 🐎 made phmap use xxhash as hashing 2021-06-29 15:06:18 -07:00
EntireTwix
58c16457cf changed endpoints and API_VERSION conditional 2021-06-29 12:58:56 -07:00
EntireTwix
bec9538bc9 changed endpoints and API_VERSION conditional 2021-06-29 12:21:14 -07:00
EntireTwix
e8941d60cd 🔥🐎 cleaned up 2021-06-28 20:18:24 -07:00
EntireTwix
0e62dbe9ef finished Endpoint/Internal rewrite 2021-06-28 19:47:17 -07:00
EntireTwix
0c34bc3689 🐛 fixing last commit 2021-06-27 22:12:31 -07:00
EntireTwix
6e46cb8f7a 🐎 save_flag is not required if conservative saving is disabled 2021-06-27 21:49:42 -07:00
EntireTwix
23928235eb 🐎 slight include optimization 2021-06-27 21:47:42 -07:00
EntireTwix
d5490ebc56 made log settings Macros 2021-06-27 21:44:40 -07:00
EntireTwix
1adb23f5b8 🐎 GetLog() snapshot 2021-06-27 21:08:10 -07:00
EntireTwix
ba20e461f6 ChangeFlag class 2021-06-27 20:27:03 -07:00
EntireTwix
1aa450e112 🐎 improved SetBal() 2021-06-27 18:10:38 -07:00
EntireTwix
1a434c6bcb SetBal() 2021-06-27 18:05:33 -07:00
EntireTwix
deae9fab7c 🐛 was set to 0 for testing 2021-06-27 17:55:04 -07:00
EntireTwix
3028c6153a 🎨 improved CONSERVATIVE_DISK_SAVE flags usage 2021-06-27 17:53:46 -07:00
EntireTwix
a4964d2742 🎨 moved macros 2021-06-27 17:43:17 -07:00
EntireTwix
d92bc60e79 🎨 changed how API versions are handled 2021-06-27 17:35:31 -07:00
EntireTwix
d9986db962 🎨 changed how API versions are handled 2021-06-27 17:34:12 -07:00
EntireTwix
539df650ea API version compiler flag 2021-06-27 17:13:19 -07:00
EntireTwix
7dec3bea72 admin filter header 2021-06-27 17:10:51 -07:00
EntireTwix
371cd16e38 🐎 made admin vpass internal 2021-06-27 16:59:22 -07:00
EntireTwix
a32efe611f admin filter 2021-06-27 16:58:34 -07:00
EntireTwix
b64e562235 changed error status 2021-06-27 12:47:20 -07:00
EntireTwix
faf63b0d4b changed structure 2021-06-27 11:33:46 -07:00
EntireTwix
a4505b1408 :construction 2021-06-27 00:01:00 -07:00
EntireTwix
8eadc3e6d9 changed some constexpr flags to macros 2021-06-26 19:21:39 -07:00
EntireTwix
42ed5b3424 UserFilter for endpoints 2021-06-26 19:21:20 -07:00
EntireTwix
9a0e59c83a 🚧 converting functions 2021-06-26 19:20:41 -07:00
EntireTwix
d8faf47801 changed comments 2021-06-24 10:35:18 -07:00
EntireTwix
85ffb7e1c3 changed comments 2021-06-24 10:34:28 -07:00
EntireTwix
6abca9b0f0 made constexpr rather then macro 2021-06-23 19:47:22 -07:00
EntireTwix
6161ca8d59 simplified changes saved 2021-06-23 18:51:10 -07:00
EntireTwix
57a0ab5d54 changed default 2021-06-23 18:15:56 -07:00
EntireTwix
f98975ae35 🐛 got change flag working 2021-06-23 18:15:42 -07:00
EntireTwix
72c5369b58 🔥 removed alg header 2021-06-23 18:15:28 -07:00
EntireTwix
2ea4d93c10 atomic flag 2021-06-23 17:17:13 -07:00
EntireTwix
33ff53de1d 🐛 corrected macro usage 2021-06-23 15:32:22 -07:00
EntireTwix
d8a840d052 changed default and added to comment 2021-06-23 15:28:50 -07:00
EntireTwix
dabcf1d311 updated comments 2021-06-23 15:24:59 -07:00
EntireTwix
839d7eb96b conservative saving 2021-06-23 15:24:00 -07:00
EntireTwix
cf036901bb conservative saving 2021-06-23 15:23:54 -07:00
EntireTwix
6637f0042e 🐛 changed uint64 to time_t 2021-06-23 14:24:20 -07:00
EntireTwix
e2c657bf2d 🐎 supplemented chrono ms for ctime time() 2021-06-23 14:20:11 -07:00
EntireTwix
9be3333efb renamed bank_f->bank_api 2021-06-23 14:18:47 -07:00
EntireTwix
85cbff7a62 🐛 fixed previous commits 2021-06-23 10:17:21 -07:00
EntireTwix
29f9905b53 changed b arg to reference 2021-06-23 10:07:05 -07:00
EntireTwix
6f84d90f51 🔥 removed simdjson in pursuit of a serialization lib 2021-06-22 17:43:56 -07:00
EntireTwix
3905ec219a renamed BankF->api 2021-06-22 17:23:04 -07:00
EntireTwix
ec9b9f389d added simdjson 2021-06-22 17:22:27 -07:00
EntireTwix
0b10a51a19 Return to Reserve Feature 2021-06-20 21:54:32 -07:00
EntireTwix
f2b7a563d9 🐎 made send funds 30% faster 2021-06-19 14:23:19 -07:00
EntireTwix
e40aa29b59 🎨 formatting 2021-06-16 21:42:46 -07:00
EntireTwix
e681b4109d made user & config save configurable 2021-06-16 21:40:31 -07:00
EntireTwix
bd357db0ac admin wrong password removed 2021-06-14 22:14:16 -07:00
EntireTwix
67a8642245 added ? to query param of setbal & sendfunds 2021-06-14 10:59:03 -07:00
EntireTwix
9b9d5cf430 made Contains return -1 instead of 0 in false case 2021-06-12 22:34:19 -07:00
EntireTwix
3e857f455e removed AdminWrongPassword error 2021-06-12 20:50:46 -07:00
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