|
9 | 9 |
|
10 | 10 | // Output JSON format |
11 | 11 | $data = array( |
12 | | - // coin info |
13 | | - 'currency' => $config['currency'], |
14 | | - 'coinname' => $config['gettingstarted']['coinname'], |
15 | | - // coin algorithm info |
16 | | - 'cointarget' => $config['cointarget'], |
17 | | - 'coindiffchangetarget' => $config['coindiffchangetarget'], |
18 | | - 'algorithm' => $config['algorithm'], |
19 | | - // stratum |
20 | | - 'stratumport' => $config['gettingstarted']['stratumport'], |
21 | | - // payments |
22 | | - 'payout_system' => $config['payout_system'], |
23 | | - 'confirmations' => $config['confirmations'], |
24 | | - 'min_ap_threshold' => $config['ap_threshold']['min'], |
25 | | - 'max_ap_threshold' => $config['ap_threshold']['max'], |
26 | | - 'reward_type' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['type'] : $config['reward_type'], |
27 | | - 'reward' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['default'] : $config['reward'], |
28 | | - // fees |
29 | | - 'txfee' => $config['txfee_manual'], // make it backwards compatible |
30 | | - 'txfee_manual' => $config['txfee_manual'], |
31 | | - 'txfee_auto' => $config['txfee_auto'], |
32 | | - 'fees' => $config['fees'] |
| 12 | + // coin info |
| 13 | + 'currency' => $config['currency'], |
| 14 | + 'coinname' => $config['gettingstarted']['coinname'], |
| 15 | + // coin algorithm info |
| 16 | + 'cointarget' => $config['cointarget'], |
| 17 | + 'coindiffchangetarget' => $config['coindiffchangetarget'], |
| 18 | + 'algorithm' => $config['algorithm'], |
| 19 | + // stratum |
| 20 | + 'stratumport' => $config['gettingstarted']['stratumport'], |
| 21 | + // payments |
| 22 | + 'payout_system' => $config['payout_system'], |
| 23 | + 'confirmations' => $config['confirmations'], |
| 24 | + 'min_ap_threshold' => $config['ap_threshold']['min'], |
| 25 | + 'max_ap_threshold' => $config['ap_threshold']['max'], |
| 26 | + 'reward_type' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['type'] : $config['reward_type'], |
| 27 | + 'reward' => $config['payout_system'] == 'pps' ? $config['pps']['reward']['default'] : $config['reward'], |
| 28 | + // fees |
| 29 | + 'txfee' => $config['txfee_manual'], // make it backwards compatible |
| 30 | + 'txfee_manual' => $config['txfee_manual'], |
| 31 | + 'txfee_auto' => $config['txfee_auto'], |
| 32 | + 'fees' => $config['fees'] |
33 | 33 | ); |
34 | 34 |
|
35 | 35 | echo $api->get_json($data); |
|
0 commit comments