wallet: show rpc listtransactions error

This commit is contained in:
Tanguy Pruvot 2016-02-20 09:12:46 +01:00
parent 0399cc2c95
commit 993cb428f5

View file

@ -202,6 +202,15 @@ $account = '';
if ($coin->symbol == 'DCR') $account = '*';
$txs = $remote->listtransactions($account, 2500);
if (empty($txs)) {
if (!empty($remote->error)) {
echo "<b>RPC Error: {$remote->error}</b><p/>";
}
// retry...
$txs = $remote->listtransactions($account, 200);
}
$txs_array = array(); $lastday = '';
if (!empty($txs)) {