mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 03:03:17 +00:00
Added incoming_transfers RPC API method
This commit is contained in:
parent
0e52233212
commit
295c284c3e
2 changed files with 1 additions and 15 deletions
|
@ -171,7 +171,7 @@ namespace tools
|
|||
if(req.transfer_type.compare("all") != 0 && req.transfer_type.compare("available") != 0 && req.transfer_type.compare("unavailable") != 0)
|
||||
{
|
||||
er.code = WALLET_RPC_ERROR_CODE_TRANSFER_TYPE;
|
||||
er.message = "Transfer type must be one of: all, available, or unavailable; provided: "
|
||||
er.message = "Transfer type must be one of: all, available, or unavailable";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -211,19 +211,6 @@ namespace tools
|
|||
|
||||
if (!transfers_found)
|
||||
{
|
||||
er.code = WALLET_RPC_ERROR_CODE_NO_TRANSFERS;
|
||||
if (!filter)
|
||||
{
|
||||
er.message = "No incoming transfers";
|
||||
}
|
||||
else if (available)
|
||||
{
|
||||
er.message = "No incoming available transfers";
|
||||
}
|
||||
else
|
||||
{
|
||||
er.message = "No incoming unavailable transfers";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,4 +11,3 @@
|
|||
#define WALLET_RPC_ERROR_CODE_GENERIC_TRANSFER_ERROR -4
|
||||
#define WALLET_RPC_ERROR_CODE_WRONG_PAYMENT_ID -5
|
||||
#define WALLET_RPC_ERROR_CODE_TRANSFER_TYPE -6
|
||||
#define WALLET_RPC_ERROR_CODE_NO_TRANSFERS -7
|
||||
|
|
Loading…
Reference in a new issue