diff --git a/web/yaamp/commands/PayoutCommand.php b/web/yaamp/commands/PayoutCommand.php index 759b248..84fbad6 100644 --- a/web/yaamp/commands/PayoutCommand.php +++ b/web/yaamp/commands/PayoutCommand.php @@ -133,9 +133,12 @@ class PayoutCommand extends CConsoleCommand if (empty($payouts) || empty($ids)) return 0; + $DCR = ($coin->rpcencoding == 'DCR' || $coin->getOfficialSymbol() == 'DCR'); + $DGB = ($coin->rpcencoding == 'DGB' || $coin->getOfficialSymbol() == 'DGB'); + $remote = new WalletRPC($coin); $account = ''; - if ($coin->rpcencoding == 'DCR') $account = '*'; + if ($DCR || $DGB) $account = '*'; $rawtxs = $remote->listtransactions($account, 25000); foreach ($ids as $uid => $user_addr) diff --git a/web/yaamp/modules/site/coin_results.php b/web/yaamp/modules/site/coin_results.php index f1667a9..f25bb91 100644 --- a/web/yaamp/modules/site/coin_results.php +++ b/web/yaamp/modules/site/coin_results.php @@ -4,7 +4,8 @@ $coin = getdbo('db_coins', getiparam('id')); if (!$coin) $this->goback(); $PoS = ($coin->algo == 'PoS'); // or if 'stake' key is present in 'getinfo' method -$DCR = ($coin->rpcencoding == 'DCR'); +$DCR = ($coin->rpcencoding == 'DCR' || $coin->getOfficialSymbol() == 'DCR'); +$DGB = ($coin->rpcencoding == 'DGB' || $coin->getOfficialSymbol() == 'DGB'); $ETH = ($coin->rpcencoding == 'GETH'); $remote = new WalletRPC($coin); @@ -296,8 +297,8 @@ echo <<master_wallet; +if ($DCR || $DGB) $account = '*'; +else if ($ETH) $account = $coin->master_wallet; $txs = $remote->listtransactions($account, $maxrows);