mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
api_version related changes
This commit is contained in:
parent
244ca2561c
commit
cf4ba5ccfa
2 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue