Short circuit txId hex encoding for BSQ swap offers

Inline a local variable, to eliminate another minor Sha256Hash.toString
hotspot in the Transactions view load, this time coming from
'TransactionsAwareOpenOffer.isRelatedToTransaction'. This is helpful in
the case that the user has a large number of (possibly disabled) BSQ
swap offers.
This commit is contained in:
Steven Barclay 2023-02-10 10:28:02 +08:00
parent fb78345ba3
commit 19a80d19bb
No known key found for this signature in database
GPG Key ID: 9FED6BF1176D500B

View File

@ -34,9 +34,7 @@ class TransactionAwareOpenOffer implements TransactionAwareTradable {
Offer offer = delegate.getOffer();
String paymentTxId = offer.getOfferFeePaymentTxId();
String txId = transaction.getTxId().toString();
return paymentTxId != null && paymentTxId.equals(txId);
return paymentTxId != null && paymentTxId.equals(transaction.getTxId().toString());
}
public Tradable asTradable() {