From 993cb428f548259910134314e78d42a7702939a5 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Sat, 20 Feb 2016 09:12:46 +0100 Subject: [PATCH] wallet: show rpc listtransactions error --- web/yaamp/modules/site/coin_results.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/yaamp/modules/site/coin_results.php b/web/yaamp/modules/site/coin_results.php index 935db34..2cca73b 100644 --- a/web/yaamp/modules/site/coin_results.php +++ b/web/yaamp/modules/site/coin_results.php @@ -202,6 +202,15 @@ $account = ''; if ($coin->symbol == 'DCR') $account = '*'; $txs = $remote->listtransactions($account, 2500); + +if (empty($txs)) { + if (!empty($remote->error)) { + echo "RPC Error: {$remote->error}

"; + } + // retry... + $txs = $remote->listtransactions($account, 200); +} + $txs_array = array(); $lastday = ''; if (!empty($txs)) {