hide reserved subaddresses in deposit view

This commit is contained in:
woodser 2023-11-29 10:28:28 -05:00
parent 84c08e4c36
commit f5d82df477
2 changed files with 11 additions and 4 deletions

View file

@ -37,12 +37,17 @@ import java.util.Optional;
@EqualsAndHashCode
@Slf4j
public final class XmrAddressEntry implements PersistablePayload {
public enum Context {
ARBITRATOR,
BASE_ADDRESS,
AVAILABLE,
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.