TransactionFuture: make 2-arg getDepthFuture() private

Hopefully we can deprecate or make private the 1-arg variant soon.
This commit is contained in:
Sean Gilligan 2023-08-21 17:20:00 -07:00 committed by Andreas Schildbach
parent 624df43ada
commit 027037c8d5

View File

@ -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 * 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. * on the network.
*/ */
public synchronized ListenableCompletableFuture<TransactionConfidence> getDepthFuture(final int depth, Executor executor) { private synchronized ListenableCompletableFuture<TransactionConfidence> getDepthFuture(final int depth, Executor executor) {
final ListenableCompletableFuture<TransactionConfidence> result = new ListenableCompletableFuture<>(); final ListenableCompletableFuture<TransactionConfidence> result = new ListenableCompletableFuture<>();
if (getDepthInBlocks() >= depth) { if (getDepthInBlocks() >= depth) {
result.complete(this); result.complete(this);