From ae29108656301129e276e0249f5c00445381382d Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 28 Feb 2024 13:13:32 +0200 Subject: [PATCH] cormorant: fix wallet loading with multiple ancestors in the mempool --- .../com/sparrowwallet/sparrow/net/cormorant/index/TxEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/net/cormorant/index/TxEntry.java b/src/main/java/com/sparrowwallet/sparrow/net/cormorant/index/TxEntry.java index 7f2a8f98..9e16b512 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/cormorant/index/TxEntry.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/cormorant/index/TxEntry.java @@ -49,7 +49,7 @@ public class TxEntry implements Comparable { return height - o.height; } - if(height == 0) { + if(height <= 0) { return tx_hash.compareTo(o.tx_hash); }