Commit graph

338 commits

Author SHA1 Message Date
EntireTwix
2b28822239 🐎🎨 re-arranged function control flow 2021-07-11 20:38:39 -07:00
EntireTwix
4b6c71354f 🎨 RESPOND_TRUE related functions return 204 now 2021-07-11 15:38:23 -07:00
EntireTwix
8a23c8fa00 ImpactBal() now responds with new balance 2021-07-11 15:32:03 -07:00
EntireTwix
94e6b3da44 🐛 changed from =default 2021-07-11 01:55:39 -07:00
EntireTwix
f7dbd4c3e0 🐎 made logs copy construct from thread_local 2021-07-11 00:55:24 -07:00
EntireTwix
4b7ef754c0 updated README redirect in preperation of release 2021-07-10 23:08:29 -07:00
EntireTwix
8c97d19330 🐛 I made a 0iq mistake 2021-07-10 21:49:24 -07:00
EntireTwix
9927bd8217 🐛🔥 fixed logs 2021-07-10 21:34:19 -07:00
EntireTwix
8063a344aa 🐎🔥 removed jsoncpp from GetLogs() solution 2021-07-10 21:23:28 -07:00
EntireTwix
36e2f6301f 🐎 noexcept constructors 2021-07-10 20:01:05 -07:00
EntireTwix
3a44c0b065 🔥racehorse: temporary resp variable was unessasary 2021-07-10 19:14:15 -07:00
EntireTwix
c1587f9e46 🐎 valid name/pass check before vpass call 2021-07-10 18:56:58 -07:00
EntireTwix
518c1b1203 🎨 made save results from Save() 2021-07-10 12:09:01 -07:00
EntireTwix
f87ec947b6 using std::optional for 204 responses 2021-07-10 11:49:09 -07:00
EntireTwix
82312b8702 🔥🐎 memset no longer needed 2021-07-10 09:59:37 -07:00
EntireTwix
c54f75a909 🐎 result_buffer is faster when local 2021-07-10 09:56:09 -07:00
EntireTwix
b91e928286 🐎 max base64 header size calculated compile time based on max name 2021-07-09 21:59:27 -07:00
EntireTwix
5a6a4180a0 🐛 nullptr isnt valid 2021-07-09 21:52:59 -07:00
EntireTwix
2d8cb3ee28 🐎 made resp construct a static thread_local again 2021-07-09 21:38:17 -07:00
EntireTwix
13d66b537c 🐎🚚 resp is faster when local 2021-07-09 21:35:01 -07:00
EntireTwix
074d024d77 🔥 removing static thread_local for temporary name/pass _val 2021-07-09 21:27:03 -07:00
EntireTwix
e0c79f980d 🐎 reverted changes after benchmarking 2021-07-09 21:19:34 -07:00
EntireTwix
6225083a06 🔥 removed legacy GEN_BODY 2021-07-09 21:06:27 -07:00
EntireTwix
408ea473d5 🐎 made each endpoint share the same name/pass intrusion strings 2021-07-09 21:04:01 -07:00
EntireTwix
386a140255 🐎🔨 modified endpoints to better adhere to JSON API conventions 2021-07-09 19:51:34 -07:00
EntireTwix
1f0a3dc28d 🐎🔨 modified endpoints to better adhere to JSON API conventions 2021-07-09 19:51:26 -07:00
EntireTwix
2d7d29372c 🔥🐎 changed local array to static thread_local buffer 2021-07-09 18:30:34 -07:00
EntireTwix
2e991da613 🔥🐎 changed local array to static thread_local buffer 2021-07-09 18:30:19 -07:00
EntireTwix
db5a54175c 🐛 fixed buffer size 2021-07-09 18:13:53 -07:00
EntireTwix
50a4e49452 🚚 renamed GetLog to GetLogs 2021-07-09 16:42:16 -07:00
EntireTwix
c7e2794e56 GetLogs() func doesnt compile when toggled off 2021-07-09 16:41:56 -07:00
EntireTwix
7803c5e1e5 🐎 static thread_local negatively effects BankResponse 2021-07-09 00:45:55 -07:00
EntireTwix
f2b5385e92 🐎 made const ref 2021-07-09 00:43:25 -07:00
EntireTwix
1d826fe96e 🐛 toResponse is also impacted by filter thread_local bug 2021-07-09 00:42:30 -07:00
EntireTwix
18452fdf1e 🐎 noexcept 2021-07-09 00:30:07 -07:00
EntireTwix
dc6c3d70a0 🔨 made str_intrusion.h into a wrapper 2021-07-09 00:07:45 -07:00
EntireTwix
1d6bbb35bf 🐛 static thread_local in filters cause highly incorrect responses 2021-07-09 00:06:49 -07:00
EntireTwix
6e57178dc8 🐛 add trans was skipping ChangeOn() when full 2021-07-08 20:42:26 -07:00
EntireTwix
b1f0aad79e 🐛 ImpactBal accepts Int64 not UInt64 2021-07-08 16:39:54 -07:00
EntireTwix
a657c9d6b2 🔥 remembered why I removed GetChangeState() check 2021-07-08 16:14:52 -07:00
EntireTwix
16494f971e 🎨 formatting 2021-07-08 14:58:58 -07:00
EntireTwix
175976e796 string move overload 2021-07-08 14:58:30 -07:00
EntireTwix
da89d390ea 🔨 using str_intrusion.h to write to private string data 2021-07-08 14:58:03 -07:00
EntireTwix
fd6d085ae5 🐎 thread_local 2021-07-08 03:00:57 -07:00
EntireTwix
805a7d05b3 🐎 thread_local 2021-07-08 02:59:27 -07:00
EntireTwix
22c99cfbfb 🐎🔨 thread_local & simdjson 2021-07-08 02:58:55 -07:00
EntireTwix
91523ca6a5 🐎 static thread_local changes 2021-07-08 02:22:59 -07:00
EntireTwix
dba161c42c simdjson for requests/responses 2021-07-08 02:21:56 -07:00
EntireTwix
6e688f1385 🔥 removed iostream header leftover from debugging 2021-07-08 02:21:07 -07:00
EntireTwix
826db0baef 🚚 moved xxhash back from submodule to header 2021-07-08 02:20:44 -07:00
EntireTwix
6b481802e5 🔥 reverted last commit 2021-07-07 16:41:05 -07:00
EntireTwix
b18ec4e26d 🐛 fixed last commit -m 2021-07-07 16:40:03 -07:00
EntireTwix
a1df11eeeb 🐛 fixed last commit -m 2021-07-07 16:37:50 -07:00
EntireTwix
51a9ab8ff8 🐎 response is always true or false so to_string is slower 2021-07-07 16:30:28 -07:00
EntireTwix
9ee4f7ab88 🐎🚚 moved CORS to bank_api.cpp and cached RESPOND_TRUE 2021-07-07 16:14:54 -07:00
EntireTwix
85e3dc038c NumOfLogs() 2021-07-07 16:13:31 -07:00
EntireTwix
b0fdfc5f4f 🐎 checking if balance copied is non zero before modify call 2021-07-07 14:33:34 -07:00
EntireTwix
bd87a14131 🔥🐎 simplified 2021-07-07 03:14:51 -07:00
EntireTwix
6af072cf66 updated name requirements to conform with minecraft names 2021-07-07 03:11:55 -07:00
EntireTwix
23b6362d91 🐛 fixed from \"true\"->true 2021-07-07 03:06:58 -07:00
EntireTwix
9fabf137f1 made RESPOND_TRUE use the custom BankResponse response 2021-07-07 02:44:11 -07:00
EntireTwix
f4f28fa92f 🐛 changed JsonFilter saving to body to setting parameter 2021-07-07 02:21:05 -07:00
EntireTwix
e3210f7337 🐛 undeflow check 2021-07-07 01:42:41 -07:00
EntireTwix
2681ca86c2 🐛 fixed error messages for filters 2021-07-06 22:00:43 -07:00
EntireTwix
dedff14e7e 🐛🎨 fixed filters reliance on toResponse for bank responses crashing 2021-07-06 21:53:32 -07:00
EntireTwix
e02120b6f2 🔥 fucky wuck removed 2021-07-06 21:37:19 -07:00
EntireTwix
e502f3ce1f 🔥🐎 made initial value compile time 2021-07-06 21:12:16 -07:00
EntireTwix
6dbb9fd98a 🔥🎨 replaced template specializations with class instaniations 2021-07-06 21:11:45 -07:00
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
d3393e8084 🐛 fixed massive send without b_name existing 2021-07-01 21:18:12 -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