mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
sql: new coins fields for stratum/pow settings
Also some more fields to cache the available balance (to allow triggers)
This commit is contained in:
parent
f92a6c506a
commit
0b4818c36e
3 changed files with 46 additions and 1 deletions
13
sql/2016-11-23-coins.sql
Normal file
13
sql/2016-11-23-coins.sql
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
-- Recent additions to add after db init (.gz)
|
||||||
|
-- mysql yaamp -p < file.sql
|
||||||
|
|
||||||
|
-- don't forget to restart memcached service to refresh the db structure
|
||||||
|
|
||||||
|
ALTER TABLE `coins` ADD `powend_height` INT(11) NULL AFTER `target_height`;
|
||||||
|
ALTER TABLE `coins` ADD `mature_blocks` INT(11) NULL AFTER `reward_mul`;
|
||||||
|
ALTER TABLE `coins` ADD `block_time` INT(11) NULL AFTER `payout_max`;
|
||||||
|
ALTER TABLE `coins` ADD `available` DOUBLE NULL AFTER `balance`;
|
||||||
|
ALTER TABLE `coins` ADD `cleared` DOUBLE NULL AFTER `balance`;
|
||||||
|
ALTER TABLE `coins` ADD `immature` DOUBLE NULL AFTER `balance`;
|
||||||
|
ALTER TABLE `coins` ADD `max_miners` INT(11) NULL AFTER `visible`;
|
||||||
|
ALTER TABLE `coins` ADD `max_shares` INT(11) NULL AFTER `max_miners`;
|
|
@ -37,6 +37,8 @@ class db_coins extends CActiveRecord
|
||||||
'txfee' => 'Tx Fee',
|
'txfee' => 'Tx Fee',
|
||||||
'program' => 'Process name',
|
'program' => 'Process name',
|
||||||
'conf_folder' => 'Conf. folder',
|
'conf_folder' => 'Conf. folder',
|
||||||
|
'mature_blocks' => 'PoW Confirmations',
|
||||||
|
'powend_height' => 'End of PoW',
|
||||||
'rpchost' => 'RPC Host',
|
'rpchost' => 'RPC Host',
|
||||||
'rpcport' => 'RPC Port',
|
'rpcport' => 'RPC Port',
|
||||||
'rpcuser' => 'RPC User',
|
'rpcuser' => 'RPC User',
|
||||||
|
|
|
@ -86,7 +86,25 @@ echo CUFHtml::closeCtrlHolder();
|
||||||
echo CUFHtml::openActiveCtrlHolder($coin, 'target_height');
|
echo CUFHtml::openActiveCtrlHolder($coin, 'target_height');
|
||||||
echo CUFHtml::activeLabelEx($coin, 'target_height');
|
echo CUFHtml::activeLabelEx($coin, 'target_height');
|
||||||
echo CUFHtml::activeTextField($coin, 'target_height', array('maxlength'=>32,'style'=>'width: 120px;'));
|
echo CUFHtml::activeTextField($coin, 'target_height', array('maxlength'=>32,'style'=>'width: 120px;'));
|
||||||
echo '<p class="formHint2"></p>';
|
echo '<p class="formHint2">Known height of the network</p>';
|
||||||
|
echo CUFHtml::closeCtrlHolder();
|
||||||
|
|
||||||
|
echo CUFHtml::openActiveCtrlHolder($coin, 'powend_height');
|
||||||
|
echo CUFHtml::activeLabelEx($coin, 'powend_height');
|
||||||
|
echo CUFHtml::activeTextField($coin, 'powend_height', array('maxlength'=>32,'style'=>'width: 120px;'));
|
||||||
|
echo '<p class="formHint2">Height of the end of PoW mining</p>';
|
||||||
|
echo CUFHtml::closeCtrlHolder();
|
||||||
|
|
||||||
|
echo CUFHtml::openActiveCtrlHolder($coin, 'mature_blocks');
|
||||||
|
echo CUFHtml::activeLabelEx($coin, 'mature_blocks');
|
||||||
|
echo CUFHtml::activeTextField($coin, 'mature_blocks', array('maxlength'=>32,'style'=>'width: 120px;'));
|
||||||
|
echo '<p class="formHint2">Required block count to mature</p>';
|
||||||
|
echo CUFHtml::closeCtrlHolder();
|
||||||
|
|
||||||
|
echo CUFHtml::openActiveCtrlHolder($coin, 'block_time');
|
||||||
|
echo CUFHtml::activeLabelEx($coin, 'block_time');
|
||||||
|
echo CUFHtml::activeTextField($coin, 'block_time', array('maxlength'=>32,'style'=>'width: 120px;'));
|
||||||
|
echo '<p class="formHint2">Average block time (sec)</p>';
|
||||||
echo CUFHtml::closeCtrlHolder();
|
echo CUFHtml::closeCtrlHolder();
|
||||||
|
|
||||||
echo CUFHtml::openActiveCtrlHolder($coin, 'errors');
|
echo CUFHtml::openActiveCtrlHolder($coin, 'errors');
|
||||||
|
@ -141,6 +159,18 @@ echo CUFHtml::activeCheckBox($coin, 'auxpow');
|
||||||
echo '<p class="formHint2">Merged mining</p>';
|
echo '<p class="formHint2">Merged mining</p>';
|
||||||
echo CUFHtml::closeCtrlHolder();
|
echo CUFHtml::closeCtrlHolder();
|
||||||
|
|
||||||
|
echo CUFHtml::openActiveCtrlHolder($coin, 'max_miners');
|
||||||
|
echo CUFHtml::activeLabelEx($coin, 'max_miners');
|
||||||
|
echo CUFHtml::activeTextField($coin, 'max_miners', array('maxlength'=>32,'style'=>'width: 120px;'));
|
||||||
|
echo '<p class="formHint2">Miners allowed by the stratum</p>';
|
||||||
|
echo CUFHtml::closeCtrlHolder();
|
||||||
|
|
||||||
|
echo CUFHtml::openActiveCtrlHolder($coin, 'max_shares');
|
||||||
|
echo CUFHtml::activeLabelEx($coin, 'max_shares');
|
||||||
|
echo CUFHtml::activeTextField($coin, 'max_shares', array('maxlength'=>32,'style'=>'width: 120px;'));
|
||||||
|
echo '<p class="formHint2">Auto restart stratum after this amount of shares</p>';
|
||||||
|
echo CUFHtml::closeCtrlHolder();
|
||||||
|
|
||||||
echo CUFHtml::openActiveCtrlHolder($coin, 'master_wallet');
|
echo CUFHtml::openActiveCtrlHolder($coin, 'master_wallet');
|
||||||
echo CUFHtml::activeLabelEx($coin, 'master_wallet');
|
echo CUFHtml::activeLabelEx($coin, 'master_wallet');
|
||||||
echo CUFHtml::activeTextField($coin, 'master_wallet', array('maxlength'=>200));
|
echo CUFHtml::activeTextField($coin, 'master_wallet', array('maxlength'=>200));
|
||||||
|
|
Loading…
Add table
Reference in a new issue