Change hard-coded references from blockstream.info to mempool.space

This commit is contained in:
wiz 2020-10-18 20:24:52 +09:00
parent ba004b7e78
commit 9503b2b774
No known key found for this signature in database
GPG Key ID: A394E332255A6173
5 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ ENV BITCOIN_NODE_USER bitcoinuser
ENV BITCOIN_NODE_PASS bitcoinpass ENV BITCOIN_NODE_PASS bitcoinpass
ENV TX_PER_SECOND_SPAN_SECONDS 150 ENV TX_PER_SECOND_SPAN_SECONDS 150
ENV BACKEND_API bitcoind ENV BACKEND_API bitcoind
ENV ELECTRS_API_URL https://www.blockstream.info/api ENV ELECTRS_API_URL https://mempool.space/api
RUN cd /mempool.space/frontend/ && \ RUN cd /mempool.space/frontend/ && \
npm run build && \ npm run build && \

View File

@ -20,6 +20,6 @@
"BITCOIN_NODE_USER": "", "BITCOIN_NODE_USER": "",
"BITCOIN_NODE_PASS": "", "BITCOIN_NODE_PASS": "",
"BACKEND_API": "bitcoind", "BACKEND_API": "bitcoind",
"ELECTRS_API_URL": "https://www.blockstream.info/api", "ELECTRS_API_URL": "https://mempool.space/api",
"TX_PER_SECOND_SPAN_SECONDS": 150 "TX_PER_SECOND_SPAN_SECONDS": 150
} }

View File

@ -1,6 +1,6 @@
<div class="modal-header"> <div class="modal-header">
<h4 class="modal-title">Fee distribution for block <h4 class="modal-title">Fee distribution for block
<a *ngIf="!isElectrsEnabled" href="https://www.blockstream.info/block-height/{{ block.height }}" target="_blank">#{{ block.height }}</a> <a *ngIf="!isElectrsEnabled" href="https://mempool.space/block-height/{{ block.height }}" target="_blank">#{{ block.height }}</a>
<a *ngIf="isElectrsEnabled" (click)="activeModal.dismiss()" [routerLink]="['/explorer/block/', block.hash]">#{{ block.height }}</a> <a *ngIf="isElectrsEnabled" (click)="activeModal.dismiss()" [routerLink]="['/explorer/block/', block.hash]">#{{ block.height }}</a>
</h4> </h4>
<button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross click')"> <button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross click')">

View File

@ -2,7 +2,7 @@
<div *ngFor="let block of blocks; let i = index; trackBy: trackByBlocksFn" > <div *ngFor="let block of blocks; let i = index; trackBy: trackByBlocksFn" >
<div (click)="openBlockModal(block);" class="text-center bitcoin-block mined-block" id="bitcoin-block-{{ block.height }}" [ngStyle]="getStyleForBlock(block)"> <div (click)="openBlockModal(block);" class="text-center bitcoin-block mined-block" id="bitcoin-block-{{ block.height }}" [ngStyle]="getStyleForBlock(block)">
<div class="block-height"> <div class="block-height">
<a *ngIf="!isElectrsEnabled" href="https://www.blockstream.info/block-height/{{ block.height }}" target="_blank">#{{ block.height }}</a> <a *ngIf="!isElectrsEnabled" href="https://mempool.space/block-height/{{ block.height }}" target="_blank">#{{ block.height }}</a>
<a *ngIf="isElectrsEnabled" [routerLink]="['/explorer/block/', block.hash]">#{{ block.height }}</a> <a *ngIf="isElectrsEnabled" [routerLink]="['/explorer/block/', block.hash]">#{{ block.height }}</a>
</div> </div>
<div class="block-body"> <div class="block-body">

View File

@ -4,7 +4,7 @@
<tr> <tr>
<td class="text-left"><b>Transaction hash</b></td> <td class="text-left"><b>Transaction hash</b></td>
<td class="text-right"> <td class="text-right">
<a *ngIf="!isElectrsEnabled" href="https://www.blockstream.info/tx/{{ tx?.txid }}" target="_blank">{{ tx?.txid | shortenString }}</a> <a *ngIf="!isElectrsEnabled" href="https://mempool.space/tx/{{ tx?.txid }}" target="_blank">{{ tx?.txid | shortenString }}</a>
<a *ngIf="isElectrsEnabled" [routerLink]="['/explorer/tx/', tx?.txid]">{{ tx?.txid | shortenString }}</a> <a *ngIf="isElectrsEnabled" [routerLink]="['/explorer/tx/', tx?.txid]">{{ tx?.txid | shortenString }}</a>
</td> </td>
</tr> </tr>