From 20ec0f95fb187ebb94cba8c9265eba38c23ef8ea Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 1 Dec 2021 14:13:58 +0200 Subject: [PATCH] test for two person coinjoin --- .../com/sparrowwallet/drongo/wallet/WalletTransaction.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java b/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java index ce23c0b..f224e3e 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java @@ -110,6 +110,10 @@ public class WalletTransaction { return !utxoSelectors.isEmpty() && utxoSelectors.get(0) instanceof PresetUtxoSelector; } + public boolean isTwoPersonCoinjoin() { + return !utxoSelectors.isEmpty() && utxoSelectors.get(0) instanceof StonewallUtxoSelector; + } + public boolean isConsolidationSend(Payment payment) { return isWalletSend(getWallet(), payment); }