mirror of
https://github.com/mempool/mempool.git
synced 2025-03-26 17:51:45 +01:00
Electrum: Sort address transactions correctly by confirmed and unconfirmed.
This commit is contained in:
parent
065c21da1f
commit
9a23d2c6b0
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user