diff --git a/core/src/main/java/bisq/core/provider/mempool/MempoolService.java b/core/src/main/java/bisq/core/provider/mempool/MempoolService.java index 6f62d31b531..02e079eba5f 100644 --- a/core/src/main/java/bisq/core/provider/mempool/MempoolService.java +++ b/core/src/main/java/bisq/core/provider/mempool/MempoolService.java @@ -59,7 +59,6 @@ public class MempoolService { private final FilterManager filterManager; private final DaoFacade daoFacade; private final DaoStateService daoStateService; - private final List btcFeeReceivers = new ArrayList<>(); @Getter private int outstandingRequests = 0; @@ -79,7 +78,6 @@ public MempoolService(Socks5ProxyProvider socks5ProxyProvider, } public void onAllServicesInitialized() { - btcFeeReceivers.addAll(getAllBtcFeeReceivers()); } public boolean canRequestBeMade() { @@ -158,7 +156,7 @@ private FutureCallback callbackForMakerTxValidation(MempoolRequest theRe public void onSuccess(@Nullable String jsonTxt) { UserThread.execute(() -> { outstandingRequests--; - resultHandler.accept(txValidator.parseJsonValidateMakerFeeTx(jsonTxt, btcFeeReceivers)); + resultHandler.accept(txValidator.parseJsonValidateMakerFeeTx(jsonTxt, getAllBtcFeeReceivers())); }); } @@ -188,7 +186,7 @@ private FutureCallback callbackForTakerTxValidation(MempoolRequest theRe public void onSuccess(@Nullable String jsonTxt) { UserThread.execute(() -> { outstandingRequests--; - resultHandler.accept(txValidator.parseJsonValidateTakerFeeTx(jsonTxt, btcFeeReceivers)); + resultHandler.accept(txValidator.parseJsonValidateTakerFeeTx(jsonTxt, getAllBtcFeeReceivers())); }); } @@ -252,7 +250,7 @@ private List getAllBtcFeeReceivers() { } }); btcFeeReceivers.addAll(daoFacade.getAllDonationAddresses()); - log.info("Known BTC fee receivers: {}", btcFeeReceivers.toString()); + log.debug("Known BTC fee receivers: {}", btcFeeReceivers.toString()); return btcFeeReceivers; } diff --git a/core/src/main/java/bisq/core/provider/mempool/TxValidator.java b/core/src/main/java/bisq/core/provider/mempool/TxValidator.java index 6e60cd813d7..9d899834a8c 100644 --- a/core/src/main/java/bisq/core/provider/mempool/TxValidator.java +++ b/core/src/main/java/bisq/core/provider/mempool/TxValidator.java @@ -180,6 +180,7 @@ private boolean checkFeeAddressBTC(String jsonTxt, List btcFeeReceivers) String error = "fee address: " + jsonFeeAddress.getAsString() + " was not a known BTC fee receiver"; errorList.add(error); log.info(error); + log.info("Known BTC fee receivers: {}", btcFeeReceivers.toString()); } } catch (JsonSyntaxException e) { errorList.add(e.toString());