Adding fee reveal text
This commit is contained in:
parent
fb63817282
commit
e092fa6286
@ -283,10 +283,8 @@ class BitcoinApi implements AbstractBitcoinApi {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const innerTx = await this.$getRawTransaction(transaction.vin[i].txid, false, false);
|
const innerTx = await this.$getRawTransaction(transaction.vin[i].txid, false, false);
|
||||||
if (addPrevout) {
|
transaction.vin[i].prevout = innerTx.vout[transaction.vin[i].vout];
|
||||||
transaction.vin[i].prevout = innerTx.vout[transaction.vin[i].vout];
|
this.addInnerScriptsToVin(transaction.vin[i]);
|
||||||
this.addInnerScriptsToVin(transaction.vin[i]);
|
|
||||||
}
|
|
||||||
totalIn += innerTx.vout[transaction.vin[i].vout].value;
|
totalIn += innerTx.vout[transaction.vin[i].vout].value;
|
||||||
}
|
}
|
||||||
if (lazyPrevouts && transaction.vin.length > 12) {
|
if (lazyPrevouts && transaction.vin.length > 12) {
|
||||||
|
@ -268,6 +268,7 @@
|
|||||||
<div class="float-left mt-2-5" *ngIf="!transactionPage && !tx.vin[0].is_coinbase && tx.fee !== -1">
|
<div class="float-left mt-2-5" *ngIf="!transactionPage && !tx.vin[0].is_coinbase && tx.fee !== -1">
|
||||||
{{ tx.fee / (tx.weight / 4) | feeRounding }} <span class="symbol" i18n="shared.sat-vbyte|sat/vB">sat/vB</span> <span class="d-none d-sm-inline-block"> – {{ tx.fee | number }} <span class="symbol" i18n="shared.sat|sat">sat</span> <span class="fiat"><app-fiat [value]="tx.fee"></app-fiat></span></span>
|
{{ tx.fee / (tx.weight / 4) | feeRounding }} <span class="symbol" i18n="shared.sat-vbyte|sat/vB">sat/vB</span> <span class="d-none d-sm-inline-block"> – {{ tx.fee | number }} <span class="symbol" i18n="shared.sat|sat">sat</span> <span class="fiat"><app-fiat [value]="tx.fee"></app-fiat></span></span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="float-left mt-2-5 grey-info-text" *ngIf="tx.fee === -1" i18n="transactions-list.load-to-reveal-fee-info">Show all inputs to reveal fee data</div>
|
||||||
|
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<ng-container *ngIf="showConfirmations && latestBlock$ | async as latestBlock">
|
<ng-container *ngIf="showConfirmations && latestBlock$ | async as latestBlock">
|
||||||
|
@ -139,4 +139,10 @@ h2 {
|
|||||||
|
|
||||||
.addr-right {
|
.addr-right {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.grey-info-text {
|
||||||
|
color:#6c757d;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user