From c63bc137c4efd4058413921192e2f066c816b1ae Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Fri, 2 Jul 2021 22:36:40 -0700 Subject: [PATCH] conditional compiling no certs when getlogs removed --- include/bank_api.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/bank_api.h b/include/bank_api.h index b61d788..1144684 100644 --- a/include/bank_api.h +++ b/include/bank_api.h @@ -40,7 +40,11 @@ public: #if API_VERSION >= 1 //Usage METHOD_ADD(api::GetBal, "/v1/user/balance?name={name}", Get, Options); +#if MAX_LOG_SIZE > 0 METHOD_ADD(api::GetLog, "/v1/user/log", Get, Options, "UserFilter"); +#else + METHOD_ADD(api::GetLog, "/v1/user/log", Get, Options); +#endif METHOD_ADD(api::SendFunds, "/v1/user/transfer", Post, Options, "UserFilter"); //expects ["to"](string) and ["amount"](32 bits) METHOD_ADD(api::VerifyPassword, "/v1/user/verify_password", Get, Options, "UserFilter");