Browse Source

ExplorerLink block info and payouts

master
yuriy0803 1 year ago
parent
commit
28f0409303
  1. 6
      install.sh
  2. 2
      www/app/templates/account/payouts.hbs
  3. 4
      www/app/templates/blocks/block.hbs
  4. 2
      www/app/templates/blocks/pending.hbs
  5. 6
      www/app/templates/payments.hbs

6
install.sh

@ -85,12 +85,6 @@ module.exports = function (environment) {
PayoutThreshold: '0.5 ETC',
BlockReward: 2.56,
blockExplorerLink: 'https://explorer.test.network/',
blockExplorerLink_tx: 'https://explorer.test.network/tx/',
blockExplorerLink_uncle: 'https://explorer.test.network/uncles/',
blockExplorerLink_block: 'https://etc.explorer.com/block/',
blockExplorerLink_address: 'https://explorer.test.network/address/',
// For network hashrate (change for your favourite fork)
BlockTime: 14.4,
highcharts: {

2
www/app/templates/account/payouts.hbs

@ -16,7 +16,7 @@
<tr>
<td>{{format-date-locale tx.timestamp}}</td>
<td>
<a href="{{config.blockExplorerLink_tx}}{{tx.tx}}" class="hash" rel="nofollow" target="_blank">{{tx.tx}}</a>
<a href="https://expedition.dev/tx/{{tx.tx}}" class="hash" rel="nofollow" target="_blank">{{tx.tx}}</a>
</td>
<td>{{format-balance tx.amount}}</td>
</tr>

4
www/app/templates/blocks/block.hbs

@ -1,10 +1,10 @@
<tr>
<td>
{{#if block.uncle}}
<a href="{{config.blockExplorerLink_uncle}}{{block.uncleHeight}}" rel="nofollow" target="_blank">{{format-number
<a href="https://expedition.dev/uncle/{{block.uncleHeight}}" rel="nofollow" target="_blank">{{format-number
block.uncleHeight}}</a>
{{else}}
<a href="{{config.blockExplorerLink_block}}{{block.height}}" rel="nofollow" target="_blank">{{format-number
<a href="https://expedition.dev/block/{{block.height}}" rel="nofollow" target="_blank">{{format-number
block.height}}</a>
{{/if}}
</td>

2
www/app/templates/blocks/pending.hbs

@ -15,7 +15,7 @@
<tbody>
{{#each model.candidates as |block|}}
<tr>
<td><a href="{{config.blockExplorerLink_block}}{{block.height}}" rel="nofollow" target="_blank">{{format-number
<td><a href="https://expedition.dev/block/{{block.height}}" rel="nofollow" target="_blank">{{format-number
block.height}}</a></td>
<td>{{#link-to 'account' block.finder class='hash'}}{{block.finder}}{{/link-to}}</td>
<td>{{format-date-locale block.timestamp}}</td>

6
www/app/templates/payments.hbs

@ -23,11 +23,11 @@
<td>{{format-date-locale tx.timestamp}}</td>
<td>{{format-number tx.formatAmount}}</td>
<td>
<a href="{{config.blockExplorerLink_address}}{{tx.address}}" class="hash" rel="nofollow"
target="_blank">{{wallet tx.address}}</a>
<a href="https://expedition.dev/address/{{tx.address}}" class="hash" rel="nofollow" target="_blank">{{wallet
tx.address}}</a>
</td>
<td>
<a href="{{config.blockExplorerLink_tx}}{{tx.tx}}" class="hash" rel="nofollow" target="_blank">{{format-tx
<a href="https://expedition.dev/tx/{{tx.tx}}" class="hash" rel="nofollow" target="_blank">{{format-tx
tx.tx}}</a>
</td>
</tr>

Loading…
Cancel
Save