Skip to content

Commit

Permalink
feat: add setters for denom goal and hardcap in CoinJoinClientOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Nov 3, 2023
1 parent 32b7d59 commit 4ee4d6f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public static void setAmount(Coin amount) {
get().coinJoinAmount.set(amount);
}

public static void setDenomsGoal(int goal) { get().coinJoinDenomsGoal.set(goal); }
public static void setDenomsHardCap(int hardCap) { get().coinJoinDenomsHardCap.set(hardCap); }

Check warning on line 62 in core/src/main/java/org/bitcoinj/coinjoin/CoinJoinClientOptions.java

View check run for this annotation

Codecov / codecov/patch

core/src/main/java/org/bitcoinj/coinjoin/CoinJoinClientOptions.java#L61-L62

Added lines #L61 - L62 were not covered by tests

public static boolean isEnabled() { return CoinJoinClientOptions.get().enableCoinJoin.get(); }
public static boolean isMultiSessionEnabled() { return CoinJoinClientOptions.get().isCoinJoinMultiSession.get(); }

Expand Down

0 comments on commit 4ee4d6f

Please sign in to comment.