mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
notes: - account "default" should be set for decred - payout_min handled (should be > txfee) - payout_max to handle... stratum rpc/account changes will be made in a second commit
66 lines
1.2 KiB
PHP
66 lines
1.2 KiB
PHP
<?php
|
|
|
|
class db_coins extends CActiveRecord
|
|
{
|
|
public static function model($className=__CLASS__)
|
|
{
|
|
return parent::model($className);
|
|
}
|
|
|
|
public function tableName()
|
|
{
|
|
return 'coins';
|
|
}
|
|
|
|
public function rules()
|
|
{
|
|
return array(
|
|
array('name', 'required'),
|
|
array('symbol', 'required'),
|
|
array('symbol', 'unique'),
|
|
);
|
|
}
|
|
|
|
public function relations()
|
|
{
|
|
return array(
|
|
);
|
|
}
|
|
|
|
public function attributeLabels()
|
|
{
|
|
return array(
|
|
'symbol2' => 'Official Symbol',
|
|
'auxpow' => 'AUX PoW',
|
|
'dontsell' => 'Don\'t sell',
|
|
'sellonbid' => 'Sell on Bid',
|
|
'txfee' => 'Tx Fee',
|
|
'program' => 'Process name',
|
|
'conf_folder' => 'Conf. folder',
|
|
'rpchost' => 'RPC Host',
|
|
'rpcport' => 'RPC Port',
|
|
'rpcuser' => 'RPC User',
|
|
'rpcpasswd' => 'RPC Password',
|
|
'rpccurl' => 'RPC via curl',
|
|
'rpcssl' => 'RPC SSL',
|
|
'rpccert' => 'RPC Certificate',
|
|
'serveruser' => 'Server user',
|
|
'hassubmitblock'=> 'Has submitblock',
|
|
'hasmasternodes'=> 'Masternodes',
|
|
'market' => 'Preferred market',
|
|
'rpcencoding' => 'RPC Type',
|
|
'specifications'=> 'Notes'
|
|
);
|
|
}
|
|
|
|
public function getSymbol_show()
|
|
{
|
|
if(!empty($this->symbol2))
|
|
return $this->symbol2;
|
|
else
|
|
return $this->symbol;
|
|
}
|
|
|
|
|
|
}
|
|
|