Browse Source

less magic

master
Dan Janosik 5 years ago
parent
commit
c0bfd49d32
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 1
      app/coins/btc.js
  2. 2
      app/config.js
  3. 8
      views/difficulty-history.pug

1
app/coins/btc.js

@ -67,6 +67,7 @@ module.exports = {
difficultyAdjustmentBlockCount: 2016,
maxSupply: new Decimal(20999817.31308491), // ref: https://bitcoin.stackexchange.com/a/38998
targetBlockTimeSeconds: 600,
targetBlockTimeMinutes: 10,
currencyUnits:currencyUnits,
currencyUnitsByName:{"BTC":currencyUnits[0], "mBTC":currencyUnits[1], "bits":currencyUnits[2], "sat":currencyUnits[3]},
baseCurrencyUnit:currencyUnits[3],

2
app/config.js

@ -166,7 +166,7 @@ module.exports = {
]
},
subHeaderToolsList:[0, 10, 9, 4, 11, 6, 7], // indexes in "siteTools" below that are shown in the site "sub menu" (visible on all pages except homepage)
prioritizedToolIdsList: [0, 10, 11, 9, 3, 4, 2, 5, 12, 1, 6, 7, 8],
prioritizedToolIdsList: [0, 10, 11, 9, 3, 4, 12, 2, 5, 1, 6, 7, 8],
},
credentials: credentials,

8
views/difficulty-history.pug

@ -13,11 +13,11 @@ block content
hr
ul.mb-0
li Mining difficulty adjusts automatically every 2,016 blocks.
li The adjustment aims to maintain an average block-mining time of 10 minutes.
li A growth in the difficulty indicates that the average block-mining time during the previous adjustment epoch was less than 10 minutes (due to more miners joining the network and 'searching' / 'mining' for blocks).
li Mining difficulty adjusts automatically every #{coinConfig.difficultyAdjustmentBlockCount.toLocaleString()} blocks.
li The adjustment aims to maintain an average block-mining time of #{coinConfig.targetBlockTimeMinutes} minutes.
li A growth in the difficulty indicates that the average block-mining time during the previous adjustment epoch was less than #{coinConfig.targetBlockTimeMinutes} minutes (due to more miners joining the network and 'searching' / 'mining' for blocks).
li A drop in difficulty indicates miners have left the network so finding each block is adjusted to be 'easier' for the smaller number remaining.
li The difficulty 'value' is a multiple of the difficulty of finding the easiest block (Block #0) - e.g. blocks in epoch 308 are over 16 trillion times harder to mine than those in epoch 0.
li The difficulty 'value' is a multiple of the difficulty of finding the easiest block (Block #0) - e.g. blocks in BTC mainnet epoch 308 are over 16 trillion times harder to mine than those in epoch 0.
div#progress-wrapper.mb-huge
div.card.shadow-sm.mb-3

Loading…
Cancel
Save