Support utxo bubble graph on electrum backends

This commit is contained in:
natsoni 2025-10-14 12:32:24 +02:00
parent 03e41d7a19
commit 086573b119
No known key found for this signature in database
GPG key ID: C65917583181743B
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@
</div>
</ng-container>
<ng-container *ngIf="(stateService.backend$ | async) === 'esplora' && address && utxos && utxos.length > 2">
<ng-container *ngIf="address && utxos && utxos.length > 2">
<br>
<div class="title-tx">
<h2 class="text-left" i18n="address.unspent-outputs">Unspent Outputs</h2>

View file

@ -221,7 +221,7 @@ export class AddressComponent implements OnInit, OnDestroy {
address.is_pubkey
? this.electrsApiService.getScriptHashTransactions$((address.address.length === 66 ? '21' : '41') + address.address + 'ac')
: this.electrsApiService.getAddressTransactions$(address.address),
(utxoCount > 2 && utxoCount <= 500 ? (address.is_pubkey
((utxoCount > 2 && utxoCount <= 500) || this.address.electrum ? (address.is_pubkey
? this.electrsApiService.getScriptHashUtxos$((address.address.length === 66 ? '21' : '41') + address.address + 'ac')
: this.electrsApiService.getAddressUtxos$(address.address)) : of(null)).pipe(
catchError(() => {