Skip to content

Commit 0f3e261

Browse files
committed
reverse order of mempool txs
1 parent 0608279 commit 0f3e261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/electrumx/server/mempool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ async def transaction_summaries(self, hashX):
424424
tx = self.txs[tx_hash]
425425
has_ui = any(hash in self.txs for hash, idx in tx.prevouts)
426426
result.append(MemPoolTxSummary(tx_hash, tx.fee, has_ui))
427-
result.sort(key=lambda x: (x.has_unconfirmed_inputs, x.hash))
427+
result.sort(key=lambda x: (x.has_unconfirmed_inputs, x.hash[::-1]))
428428
return result
429429

430430
async def unordered_UTXOs(self, hashX):

0 commit comments

Comments
 (0)