Commit a6c8edbe authored by xiphon's avatar xiphon
Browse files

monero: add optional 'min_height' argument to incomingTransfers RPC

parent 5d217864
...@@ -107,9 +107,9 @@ class jsonRPCClient implements Contracts\WalletManager ...@@ -107,9 +107,9 @@ class jsonRPCClient implements Contracts\WalletManager
* *
* @return array * @return array
*/ */
public function incomingTransfers() : array public function incomingTransfers($min_height = 0) : array
{ {
$response = $this->request('get_transfers', ['pool' => true, 'in' => true]); $response = $this->request('get_transfers', ['pool' => true, 'in' => true, 'min_height' => $min_height, 'filter_by_height' => $min_height > 0 ? true : false]);
return $response; return $response;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment