api_version related changes

This commit is contained in:
EntireTwix 2022-11-28 17:14:41 -08:00
parent 244ca2561c
commit cf4ba5ccfa
2 changed files with 4 additions and 0 deletions

View file

@ -98,6 +98,7 @@ BankResponse Bank::GetLogs(const std::string &name) noexcept
return res; return res;
} }
} }
#if API_VERSION >= 2
BankResponse Bank::GetLogsV2(const std::string &name) noexcept BankResponse Bank::GetLogsV2(const std::string &name) noexcept
{ {
BankResponse res; BankResponse res;
@ -111,6 +112,7 @@ BankResponse Bank::GetLogsV2(const std::string &name) noexcept
} }
} }
#endif #endif
#endif
BankResponse Bank::SendFunds(const std::string &a_name, const std::string &b_name, uint32_t amount) noexcept BankResponse Bank::SendFunds(const std::string &a_name, const std::string &b_name, uint32_t amount) noexcept
{ {
if (!amount) if (!amount)

View file

@ -40,6 +40,7 @@ void api::GetLogs(req_args)
callback(resp); callback(resp);
#endif #endif
} }
#if API_VERSION >= 2
void api::GetLogsV2(req_args) void api::GetLogsV2(req_args)
{ {
#if MAX_LOG_SIZE > 0 #if MAX_LOG_SIZE > 0
@ -51,6 +52,7 @@ void api::GetLogsV2(req_args)
callback(resp); callback(resp);
#endif #endif
} }
#endif
void api::SendFunds(req_args) void api::SendFunds(req_args)
{ {
SIMD_JSON_GEN; SIMD_JSON_GEN;