From 4450d625dd2615c9200d777508cce6facad16f9d Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 25 Mar 2024 17:01:31 +0200 Subject: [PATCH] external destination now checks for custom postmix handler --- .../com/sparrowwallet/sparrow/whirlpool/Whirlpool.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/whirlpool/Whirlpool.java b/src/main/java/com/sparrowwallet/sparrow/whirlpool/Whirlpool.java index 2836204f..dec18890 100644 --- a/src/main/java/com/sparrowwallet/sparrow/whirlpool/Whirlpool.java +++ b/src/main/java/com/sparrowwallet/sparrow/whirlpool/Whirlpool.java @@ -538,12 +538,7 @@ public class Whirlpool { int mixes = minMixes == null ? DEFAULT_MIXTO_MIN_MIXES : minMixes; IPostmixHandler postmixHandler = new SparrowPostmixHandler(whirlpoolWalletService, mixToWallet, KeyPurpose.RECEIVE); - ExternalDestination externalDestination = new ExternalDestination(postmixHandler, 0, mixes, DEFAULT_MIXTO_RANDOM_FACTOR) { - @Override - public IPostmixHandler getPostmixHandlerCustomOrDefault(WhirlpoolWallet whirlpoolWallet) { - return postmixHandler; - } - }; + ExternalDestination externalDestination = new ExternalDestination(postmixHandler, 0, mixes, DEFAULT_MIXTO_RANDOM_FACTOR); config.setExternalDestination(externalDestination); }