Revert "Defined confirmations (#182)" (#186)

This reverts commit df3d9e78d3.
This commit is contained in:
Potato 2022-03-17 19:52:17 -05:00 committed by GitHub
parent df3d9e78d3
commit 2c6dea65ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View File

@ -795,15 +795,6 @@ function SetupForPool(logger, poolOptions, setupFinished){
// get transaction category for round
round.category = generationTx.category
//Consider block mature if block confirmations is >= to confirmations defined in poolOptions
if (round.confirmations >= poolOptions.coin.poolOptions.confirmations || 100) {
round.category = 'generate';
}
if (poolOptions.coin.poolOptions.confirmations =< 10) {
logger.warning(logSystem, logComponent, logComponent + ' block confirmations > 10 recommended!');
}
// get reward for newly generated blocks
if (round.category === 'generate' || round.category === 'immature') {
round.reward = coinsRound(parseFloat(generationTx.amount || generationTx.value))

View File

@ -153,7 +153,7 @@
{{ } }}
{{if (it.stats.pools[pool].pending.confirms) { }}
{{if (it.stats.pools[pool].pending.confirms[block[0]]) { }}
<span style="float:right; color: red;"><small>{{=it.stats.pools[pool].pending.confirms[block[0]]}} of {{=it.poolsConfigs[pool].coin.poolOptions.confirmations}}</small></span>
<span style="float:right; color: red;"><small>{{=it.stats.pools[pool].pending.confirms[block[0]]}} of 100</small></span>
{{ } else { }}
<span style="float:right; color: red;"><small>*PENDING*</small></span>
{{ } }}