Skip to content

Commit

Permalink
ExplorerLink block info and payouts
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy0803 committed Aug 8, 2024
1 parent 8c74fd1 commit 28f0409
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
6 changes: 0 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion www/app/templates/account/payouts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions www/app/templates/blocks/block.hbs
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -49,4 +49,4 @@
</td>
<td>{{format-hashrate block.shareDiff}}</td>
<td>{{block.worker}}</td>
</tr>
</tr>
2 changes: 1 addition & 1 deletion www/app/templates/blocks/pending.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions www/app/templates/payments.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 28f0409

Please sign in to comment.