mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-21 06:54:29 +01:00
remove some properties from exposed payment options
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package de.cotto.lndmanagej.controller.dto;
|
||||
|
||||
import de.cotto.lndmanagej.model.Pubkey;
|
||||
import de.cotto.lndmanagej.pickhardtpayments.model.PaymentOptions;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
@@ -20,10 +19,6 @@ public class PaymentOptionsDto {
|
||||
@Nullable
|
||||
private Long feeRateLimit;
|
||||
private boolean ignoreFeesForOwnChannels;
|
||||
@Nullable
|
||||
private Pubkey peer;
|
||||
@Nullable
|
||||
private Long feeRateLimitExceptIncomingHops;
|
||||
|
||||
public PaymentOptionsDto() {
|
||||
ignoreFeesForOwnChannels = DEFAULT_PAYMENT_OPTIONS.ignoreFeesForOwnChannels();
|
||||
@@ -34,9 +29,9 @@ public class PaymentOptionsDto {
|
||||
return new PaymentOptions(
|
||||
Optional.ofNullable(feeRateWeight),
|
||||
Optional.ofNullable(feeRateLimit),
|
||||
Optional.ofNullable(feeRateLimitExceptIncomingHops),
|
||||
Optional.empty(),
|
||||
ignoreFeesForOwnChannels,
|
||||
Optional.ofNullable(peer)
|
||||
Optional.empty()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -51,12 +46,4 @@ public class PaymentOptionsDto {
|
||||
public void setIgnoreFeesForOwnChannels(boolean ignoreFeesForOwnChannels) {
|
||||
this.ignoreFeesForOwnChannels = ignoreFeesForOwnChannels;
|
||||
}
|
||||
|
||||
public void setPeer(@Nullable Pubkey peer) {
|
||||
this.peer = peer;
|
||||
}
|
||||
|
||||
public void setFeeRateLimitExceptIncomingHops(@Nullable Long feeRateLimitExceptIncomingHops) {
|
||||
this.feeRateLimitExceptIncomingHops = feeRateLimitExceptIncomingHops;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user