mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 09:50:32 +01:00
TransactionFuture: make 2-arg getDepthFuture()
private
Hopefully we can deprecate or make private the 1-arg variant soon.
This commit is contained in:
parent
624df43ada
commit
027037c8d5
@ -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<TransactionConfidence> getDepthFuture(final int depth, Executor executor) {
|
||||
private synchronized ListenableCompletableFuture<TransactionConfidence> getDepthFuture(final int depth, Executor executor) {
|
||||
final ListenableCompletableFuture<TransactionConfidence> result = new ListenableCompletableFuture<>();
|
||||
if (getDepthInBlocks() >= depth) {
|
||||
result.complete(this);
|
||||
|
Loading…
Reference in New Issue
Block a user