Adding fee reveal text

This commit is contained in:
softsimon 2022-05-20 21:29:44 +04:00
parent fb63817282
commit e092fa6286
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
3 changed files with 10 additions and 5 deletions

View File

@ -283,10 +283,8 @@ class BitcoinApi implements AbstractBitcoinApi {
continue;
}
const innerTx = await this.$getRawTransaction(transaction.vin[i].txid, false, false);
if (addPrevout) {
transaction.vin[i].prevout = innerTx.vout[transaction.vin[i].vout];
this.addInnerScriptsToVin(transaction.vin[i]);
}
transaction.vin[i].prevout = innerTx.vout[transaction.vin[i].vout];
this.addInnerScriptsToVin(transaction.vin[i]);
totalIn += innerTx.vout[transaction.vin[i].vout].value;
}
if (lazyPrevouts && transaction.vin.length > 12) {

View File

@ -268,6 +268,7 @@
<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">&nbsp;&ndash; {{ 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 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">
<ng-container *ngIf="showConfirmations && latestBlock$ | async as latestBlock">

View File

@ -139,4 +139,10 @@ h2 {
.addr-right {
font-family: monospace;
}
}
.grey-info-text {
color:#6c757d;
font-style: italic;
font-size: 12px;
}