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

@@ -175,6 +175,17 @@ export class TransactionsListComponent implements OnInit, OnChanges {
}
}
loadMoreInputs(tx: Transaction) {
tx['@vinLimit'] = false;
this.electrsApiService.getTransaction$(tx.txid)
.subscribe((newTx) => {
tx.vin = newTx.vin;
tx.fee = newTx.fee;
this.ref.markForCheck();
});
}
ngOnDestroy() {
this.outspendsSubscription.unsubscribe();
}