Commit graph

268 commits

Author SHA1 Message Date
EntireTwix
18b7923d7f 🐛 fixed testing state 2021-07-06 20:43:22 -07:00
EntireTwix
5ab0f89e89 🐎 noexcept and new constructor 2021-07-06 20:29:27 -07:00
EntireTwix
80cc3a99cf 🚧🐎 preparing to use FBE, in the meantime its 99% faster 2021-07-06 20:29:00 -07:00
EntireTwix
bf5c2fde33 🐛 fixed last commit 2021-07-06 19:02:23 -07:00
EntireTwix
73ebb6e5bd 🔥 removed preallocting log functionality 2021-07-06 18:54:31 -07:00
EntireTwix
ff89efe4fc 🎉 BankResponse struct 2021-07-06 18:52:27 -07:00
EntireTwix
f431d8bcda 🔥racehorse: jsoncpp removed! 2021-07-06 18:51:56 -07:00
EntireTwix
448149e60d 🎨fire: used custom HTTP response in filters 2021-07-06 15:05:03 -07:00
EntireTwix
46fcb1f443 🐛 Max log 1 optimizations fixed 2021-07-06 02:12:38 -07:00
EntireTwix
99f35a11df 🐛 Max log 1 optimizations fixed 2021-07-06 02:09:53 -07:00
EntireTwix
ae219af90e 🐛 fixed NumOfLogs if logs disabled 2021-07-06 02:04:44 -07:00
EntireTwix
cf580ae876 🐎🔥 std::move was not required 2021-07-05 19:49:51 -07:00
EntireTwix
c82a90f054 🐛 switched conditional oops 2021-07-05 19:42:35 -07:00
EntireTwix
9fce1fd083 🎨 renamed GetLog->GetLogs 2021-07-05 19:34:05 -07:00
EntireTwix
cca2bf6216 🎨 uniform naming 2021-07-05 18:55:16 -07:00
EntireTwix
99af2c02ab 🎨 uniform naming 2021-07-05 18:52:58 -07:00
EntireTwix
c29abc34e0 🐛 fixed last commit 2021-07-05 18:49:41 -07:00
EntireTwix
597a710e2b made save function absolute 2021-07-05 18:49:13 -07:00
EntireTwix
4c3b521966 🐛 as amount can be negative now, conditional must change 2021-07-05 17:43:25 -07:00
EntireTwix
cb06dd31dd 2021-07-05 17:30:20 -07:00
EntireTwix
297b184a11 🎨🔥 reduced Sub/Add Bal() to ImpactBal() 2021-07-05 17:27:18 -07:00
EntireTwix
da2074859e 🎨🔥 merged admin filter with user filter as template arg 2021-07-05 17:11:24 -07:00
EntireTwix
6926cf8791 🔥🐛 left a legacy cout in 2021-07-05 15:54:32 -07:00
EntireTwix
d25ff09bdf 🎨 simplified by specializing toResponse() 2021-07-05 14:52:31 -07:00
EntireTwix
f6a6c23fc3 🔥 removed ping transformed api version into api properties 2021-07-05 13:54:30 -07:00
EntireTwix
7abca3126b 🎨 for conformity, GetLogs always returns 64 bit time_t 2021-07-05 01:13:33 -07:00
EntireTwix
6eb02a8288 🐛🎨 fixed filter organization 2021-07-05 00:44:53 -07:00
EntireTwix
97fd39b1d4 🐎 body only set if method needs it 2021-07-04 23:42:18 -07:00
EntireTwix
b310c8ec2b 🐛🐎 fixed last commit and made faster 2021-07-04 23:18:55 -07:00
EntireTwix
5275028fd6 🐛 fixed user/admin filter std::string_view fuckery 2021-07-04 22:48:24 -07:00
EntireTwix
27f0c951ad 🐛 typo 2021-07-04 21:02:24 -07:00
EntireTwix
3edd25dbe8 🐎 optimized for when log == 1 2021-07-04 20:34:49 -07:00
EntireTwix
317233be67 changed redirect adress 2021-07-04 18:18:16 -07:00
EntireTwix
6a8b5da869 🐛 always init ints kids 2021-07-04 03:46:41 -07:00
EntireTwix
b6344da31d 💄 NumOfUsers() & NumOfLogs() for loading output 2021-07-04 03:33:17 -07:00
EntireTwix
e81a7b281e SubBal() 2021-07-04 03:12:17 -07:00
EntireTwix
b0ba114445 🔥 default is k200 2021-07-04 02:58:53 -07:00
EntireTwix
d6a55652ca AddBal 2021-07-04 02:48:09 -07:00
EntireTwix
77c6923765 🐛 self delete uses name as param 2021-07-04 02:36:23 -07:00
EntireTwix
65d21848b3 🚧 help redirects to repo help docs 2021-07-04 02:32:41 -07:00
EntireTwix
b9af380b64 🐎 very slight improvement 2021-07-04 02:24:38 -07:00
EntireTwix
6402ad300c 🐛 fixed Json Filter 2021-07-04 02:14:19 -07:00
EntireTwix
ea35a04b66 🎨 made vpass and admin/vpass POST 2021-07-04 01:57:01 -07:00
EntireTwix
29044d697c 🐎 references rather then copy 2021-07-04 01:32:03 -07:00
EntireTwix
46b48b1d6f 🚧 working on 2021-07-04 01:31:43 -07:00
EntireTwix
f0a296d97b Accept Filter 2021-07-04 01:26:44 -07:00
EntireTwix
8b30588d8f 🐎 made RESPOND_TRUE cached 2021-07-04 01:24:36 -07:00
EntireTwix
89e4da34bf 🚚 moved CORS back 2021-07-04 00:48:43 -07:00
EntireTwix
85ee2167ff 🚚 moved CORS back 2021-07-04 00:47:35 -07:00
EntireTwix
239e8007e9 🔥🎨 simplified by using only one save_lock 2021-07-03 19:45:52 -07:00
EntireTwix
a561742347 🎨 simplified DelUser() 2021-07-03 19:10:32 -07:00
EntireTwix
029a10f1bc 🎨 simplified 2021-07-03 18:48:42 -07:00
EntireTwix
e157586557 🐛 fixing how Conservative saving flag impacts code 2021-07-03 18:35:28 -07:00
EntireTwix
f04ca463fe 🔥 reverted noexcept as drogon doesnt like it 2021-07-03 17:48:11 -07:00
EntireTwix
b90552d0d4 🐛🐎 noexcept and fixed DelUser 2021-07-03 17:43:46 -07:00
EntireTwix
7c0b4f48bd 🚚 moved CORS header 2021-07-03 17:31:27 -07:00
EntireTwix
0b59e273f0 🐛 multiple methods didnt toggle change flag 2021-07-03 11:45:39 -07:00
EntireTwix
f3c3c47e73 API Version Endpoint 2021-07-03 01:41:24 -07:00
EntireTwix
ca6187fffc 🐛 setbal was using NAME_PARAM as user 2021-07-03 01:27:07 -07:00
EntireTwix
88e5cfc3d3 🔥 removed comments 2021-07-03 01:06:59 -07:00
EntireTwix
fd657dd9bf 🔥🐎 password never initilized if username isnt admin 2021-07-03 01:06:49 -07:00
EntireTwix
1b950ce0c0 🐛 fixed last commit 2021-07-03 00:46:40 -07:00
EntireTwix
0e5836b777 🎨🐎 multi threaded flag for conditional compiling 2021-07-03 00:39:42 -07:00
EntireTwix
72cbbd5494 🐎 move overload 2021-07-02 23:45:50 -07:00
EntireTwix
1c5f2e1ae6 🐎 improved SendFunds() 2021-07-02 23:33:17 -07:00
EntireTwix
6eacdb6d1e 🐛 removed typo 2021-07-02 22:42:53 -07:00
EntireTwix
fe98e73319 🔥🎨🐎 removed substr_view after learning string_view::substr is O(1) 2021-07-02 22:42:24 -07:00
EntireTwix
69ff81c727 🐎 Transaction names moved in 2021-07-02 22:41: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
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
88a3d79f9c 🐛 removed extremely low chance of overflow 2021-07-01 23:58:27 -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
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
766047dc07 🐎 slight simplification 2021-06-29 22:33:53 -07:00
EntireTwix
117bd33ca0 🐛 error on cast 2021-06-29 15:54:57 -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
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
1ea1618228 🎨 simplified DelUser() 2021-06-27 19:38:06 -07:00
EntireTwix
541b912efe 🐛 fixed return on delete functionality 2021-06-27 19:33:27 -07:00
EntireTwix
3b1a459e18 🐛 fixed last commit 2021-06-27 19:30:16 -07:00
EntireTwix
6d6b55025b 🐛 fixed last commit 2021-06-27 19:29:36 -07:00
EntireTwix
113a765c14 added ChangesMade() to functions 2021-06-27 19:28:06 -07:00
EntireTwix
731132e719 🐎 performance changes 2021-06-27 18:57:27 -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
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
482e8709a7 🎨 corrected RESPONSE_PARSE 2021-06-27 17:40:05 -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
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
dfdeba08bd 🐎 removed lambda args 2021-06-27 12:50:44 -07:00
EntireTwix
b64e562235 changed error status 2021-06-27 12:47:20 -07:00
EntireTwix
749d20880f changed structure 2021-06-27 11:34:14 -07:00
EntireTwix
faf63b0d4b changed structure 2021-06-27 11:33:46 -07:00
EntireTwix
893ca3884d 🐎 name is temporarily stored in body 2021-06-27 00:02:30 -07:00
EntireTwix
a4505b1408 :construction 2021-06-27 00:01:00 -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
eff2d553f5 🔥 removed unused variable 2021-06-24 10:40:18 -07:00
EntireTwix
7bc0dd25d0 🐛 fixed Del/Admin Del users return to reserver functionality 2021-06-23 19:47:05 -07:00
EntireTwix
7aadd63cd5 implementing change state saving 2021-06-23 18:36:39 -07:00
EntireTwix
992b8371d1 🐛 got change flag working 2021-06-23 18:14:45 -07:00
EntireTwix
2ea4d93c10 atomic flag 2021-06-23 17:17:13 -07:00
EntireTwix
cf036901bb conservative saving 2021-06-23 15:23:54 -07:00
EntireTwix
ac859f2c17 🐛 forgot time_val in constructor 2021-06-23 15:10:10 -07:00
EntireTwix
567a24231d simplified constructors 2021-06-23 14:30:47 -07:00
EntireTwix
6637f0042e 🐛 changed uint64 to time_t 2021-06-23 14:24:20 -07:00
EntireTwix
22d8001066 renamed bank_f->bank_api 2021-06-23 14:20:19 -07:00
EntireTwix
e2c657bf2d 🐎 supplemented chrono ms for ctime time() 2021-06-23 14:20:11 -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
bc067bafe9 🐛 send funds wasnt logging correctly 2021-06-20 19:21:08 -07:00
EntireTwix
f58813606d 🐎 slightly faster when logs arent full 2021-06-19 20:50:06 -07:00
EntireTwix
2dc1c0c369 🐎 6% faster sendfunds 2021-06-19 15:19:44 -07:00
EntireTwix
a08d53bf34 changed order of conditional 2021-06-19 14:28:48 -07:00
EntireTwix
31e08aeb97 🐎 made send funds 30% faster 2021-06-19 14:23:39 -07:00
EntireTwix
aa9f481fbe names can no longer contain spaces 2021-06-18 17:00:27 -07:00
EntireTwix
e07a393485 🐛 added JsonCast back 2021-06-18 13:50:47 -07:00
EntireTwix
0b9a8a1541 Merge branch 'main' of https://github.com/EntireTwix/CCash 2021-06-18 12:41:31 -07:00
EntireTwix
882311eb5f 🐛 forgot 2021-06-18 12:41:16 -07:00
William Katz
f541e16a4d
🔥 GEN_BODY is no longer needed 2021-06-18 12:22:11 -07:00
William Katz
04bf0c55e4
🐎 reduces json parsing to 0ns
json parsing used to be 75% of functions like GetBal's cost, but now its 0% as its just moved in and implicitly cast to Json::Value
2021-06-18 12:21:37 -07:00
EntireTwix
e681b4109d made user & config save configurable 2021-06-16 21:40:31 -07:00
EntireTwix
a028b9a628 🐛 silly error 2021-06-15 13:21:21 -07:00
EntireTwix
153ff6e39d temp was extraneous 2021-06-15 13:16:18 -07:00
EntireTwix
17cb1a0c23 int 64 cast json 2021-06-15 12:34:15 -07:00
EntireTwix
dedc62f0f7 turned some conditionals into turnary for code cleanliness 2021-06-14 18:49:17 -07:00
EntireTwix
79f388af72 fixed major sendfunds bug 2021-06-14 18:27:03 -07:00
EntireTwix
2ccb18345f 🐛 warnings removed 2021-06-14 13:50:49 -07:00
EntireTwix
de14e2983a removed last commits console out 2021-06-14 11:04:06 -07:00
EntireTwix
ead2f87ab7 Merge branch 'main' of https://github.com/EntireTwix/CCash 2021-06-14 11:00:48 -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
50d4801074 updated paths 2021-06-12 21:30:13 -07:00
EntireTwix
3279835696 🐎 contains check for SendFunds before unique grabbed 2021-06-12 20:56:04 -07:00