Added reward_type and reward info to api/getpoolinfo

This commit is contained in:
Hüseyin Uslu 2014-01-24 00:37:50 +02:00
parent 207a8719fd
commit 0639af54b3

View File

@ -22,13 +22,15 @@ $data = array(
'stratumport' => $config[gettingstarted][stratumport], 'stratumport' => $config[gettingstarted][stratumport],
// payments // payments
'payout_system' => $config[payout_system], 'payout_system' => $config[payout_system],
'confirmations' => $config['confirmations'], 'confirmations' => $config['confirmations'],
'min_ap_threshold' => $config[ap_threshold][min], 'min_ap_threshold' => $config[ap_threshold][min],
'max_ap_threshold' => $config[ap_threshold][max], 'max_ap_threshold' => $config[ap_threshold][max],
// backwards compatibility for old API calls 'reward_type' => $config[payout_system] == 'pps' ? $config['pps']['reward']['type'] : $config['reward_type'],
'txfee' => $config['txfee_manual'], 'reward' => $config[payout_system] == 'pps' ? $config['pps']['reward']['default'] : $config['reward'],
'txfee_manual' => $config['txfee_manual'], // fees
'txfee_auto' => $config['txfee_auto'], 'txfee' => $config['txfee_manual'], // make it backwards compatible
'txfee_manual' => $config['txfee_manual'],
'txfee_auto' => $config['txfee_auto'],
'fees' => $config[fees] 'fees' => $config[fees]
); );