Stop printing to console when confirming
This commit is contained in:
parent
25977408df
commit
87437fbddc
@ -6,9 +6,14 @@ class LogProgress: BdkProgress {
|
||||
}
|
||||
}
|
||||
|
||||
class NullProgress: BdkProgress {
|
||||
override fun update(progress: Float, message: String? ) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun getConfirmedTransaction(wallet: OnlineWalletInterface, transactionId: String): ConfirmedTransaction? {
|
||||
println("Syncing...")
|
||||
wallet.sync(LogProgress(), null)
|
||||
wallet.sync(NullProgress(), null)
|
||||
return wallet.getTransactions().stream().filter({ it.id.equals(transactionId) }).findFirst().orElse(null)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user