Identify and display mining pool.

fixes #59
This commit is contained in:
softsimon
2020-05-10 00:35:21 +07:00
parent 1feb985bec
commit 0753b11840
12 changed files with 101 additions and 6 deletions

View File

@@ -49,12 +49,12 @@
<ng-template [ngIf]="fees !== undefined" [ngIfElse]="loadingFees">
<tr>
<td>Total fees</td>
<td><app-amount [satoshis]="fees * 100000000" digitsInfo="1.2-8"></app-amount> (<app-fiat [value]="fees * 100000000" digitsInfo="1.0-0"></app-fiat>)</td>
<td><app-amount [satoshis]="fees * 100000000" digitsInfo="1.2-2"></app-amount> (<app-fiat [value]="fees * 100000000" digitsInfo="1.0-0"></app-fiat>)</td>
</tr>
<tr>
<td>Reward + fees:</td>
<td>
<app-amount [satoshis]="(blockSubsidy + fees) * 100000000" digitsInfo="1.2-8"></app-amount> (<app-fiat [value]="(blockSubsidy + fees) * 100000000" digitsInfo="1.0-0"></app-fiat>)
<app-amount [satoshis]="(blockSubsidy + fees) * 100000000" digitsInfo="1.2-2"></app-amount> (<app-fiat [value]="(blockSubsidy + fees) * 100000000" digitsInfo="1.0-0"></app-fiat>)
</td>
</tr>
</ng-template>
@@ -68,6 +68,10 @@
<td><span class="skeleton-loader"></span></td>
</tr>
</ng-template>
<tr>
<td>Miner</td>
<td><app-miner [coinbaseTransaction]="transactions && transactions[0]"></app-miner></td>
</tr>
</tbody>
</table>
</div>

View File

@@ -37,6 +37,7 @@ export class BlockComponent implements OnInit, OnDestroy {
.pipe(
switchMap((params: ParamMap) => {
const blockHash: string = params.get('id') || '';
this.block = undefined;
this.error = undefined;
this.fees = undefined;

View File

@@ -57,7 +57,7 @@
width: 100%;
left: -12px;
text-shadow: 0px 32px 3px #111;
z-index: 100;
z-index: 1;
}
.bitcoin-block::after {