mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
show offer funding address entries in receive view
This commit is contained in:
parent
7509a80895
commit
dc015ad83d
@ -44,10 +44,6 @@ public final class XmrAddressEntry implements PersistablePayload {
|
|||||||
AVAILABLE,
|
AVAILABLE,
|
||||||
OFFER_FUNDING,
|
OFFER_FUNDING,
|
||||||
TRADE_PAYOUT;
|
TRADE_PAYOUT;
|
||||||
|
|
||||||
public boolean isReserved() {
|
|
||||||
return this == Context.OFFER_FUNDING || this == Context.TRADE_PAYOUT;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// keyPair can be null in case the object is created from deserialization as it is transient.
|
// keyPair can be null in case the object is created from deserialization as it is transient.
|
||||||
|
@ -326,7 +326,7 @@ public class DepositView extends ActivatableView<VBox, Void> {
|
|||||||
List<XmrAddressEntry> addressEntries = xmrWalletService.getAddressEntries();
|
List<XmrAddressEntry> addressEntries = xmrWalletService.getAddressEntries();
|
||||||
List<DepositListItem> items = new ArrayList<>();
|
List<DepositListItem> items = new ArrayList<>();
|
||||||
for (XmrAddressEntry addressEntry : addressEntries) {
|
for (XmrAddressEntry addressEntry : addressEntries) {
|
||||||
if (addressEntry.getContext().isReserved()) continue;
|
if (addressEntry.isTrade()) continue; // skip reserved for trade
|
||||||
items.add(new DepositListItem(addressEntry, xmrWalletService, formatter, txsWithIncomingOutputs, subaddresses));
|
items.add(new DepositListItem(addressEntry, xmrWalletService, formatter, txsWithIncomingOutputs, subaddresses));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user