Lazy load tx inputs in Bitcoin Core mode

fixes #465
This commit is contained in:
softsimon
2022-05-13 16:00:38 +04:00
parent 2ba506515c
commit fb63817282
9 changed files with 53 additions and 21 deletions

View File

@@ -125,7 +125,7 @@ export class TransactionComponent implements OnInit, OnDestroy {
}),
switchMap(() => {
let transactionObservable$: Observable<Transaction>;
if (history.state.data) {
if (history.state.data && history.state.data.fee !== -1) {
transactionObservable$ = of(history.state.data);
} else {
transactionObservable$ = this.electrsApiService