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