mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
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:
parent
fb78345ba3
commit
19a80d19bb
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user