mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
add comment to transaction entry equals
This commit is contained in:
parent
3c6adafc15
commit
eda712e269
1 changed files with 2 additions and 0 deletions
|
@ -116,6 +116,8 @@ public class TransactionEntry extends Entry implements Comparable<TransactionEnt
|
|||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
TransactionEntry that = (TransactionEntry) o;
|
||||
// Even though the txid identifies a transaction, receiving an incomplete set of script hash notifications can result in some inputs/outputs for a tx being missing.
|
||||
// To resolve this we check the number of children, but not the children themselves (since we don't care here when they are spent)
|
||||
return wallet.equals(that.wallet) && blockTransaction.equals(that.blockTransaction) && getChildren().size() == that.getChildren().size();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue