Electrum: Sort address transactions correctly by confirmed and unconfirmed.

This commit is contained in:
softsimon 2021-01-10 17:40:05 +07:00
parent 065c21da1f
commit 9a23d2c6b0
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -126,7 +126,7 @@ class BitcoindElectrsApi extends BitcoinApi implements AbstractBitcoinApi {
const transactions: IEsploraApi.Transaction[] = [];
const history = await this.$getScriptHashHistory(addressInfo.scriptPubKey);
history.reverse();
history.sort((a, b) => (b.height || 9999999) - (a.height || 9999999));
let startingIndex = 0;
if (lastSeenTxId) {