diff --git a/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java b/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java index 4b864ec9b..cb97109e9 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java +++ b/core/src/main/java/org/bitcoinj/core/TransactionConfidence.java @@ -518,7 +518,7 @@ public class TransactionConfidence { * depth to one will wait until it appears in a block on the best chain, and zero will wait until it has been seen * on the network. */ - public synchronized ListenableCompletableFuture getDepthFuture(final int depth, Executor executor) { + private synchronized ListenableCompletableFuture getDepthFuture(final int depth, Executor executor) { final ListenableCompletableFuture result = new ListenableCompletableFuture<>(); if (getDepthInBlocks() >= depth) { result.complete(this);