Merge pull request #1371 from mempool/simon/address-amount-fix

Address value did not calculate self transfers
This commit is contained in:
softsimon 2022-03-15 18:01:57 +01:00 committed by GitHub
commit 53777e84c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ export class TransactionsListComponent implements OnInit, OnChanges {
.map((v: Vin) => v.prevout.value || 0)
.reduce((a: number, b: number) => a + b, 0);
tx['addressValue'] = addressIn || -addressOut;
tx['addressValue'] = addressIn - addressOut;
}
observableObject[i] = this.electrsApiService.getOutspends$(tx.txid);