From 87437fbddc6c208792c0025d5ec34575cfb74ba4 Mon Sep 17 00:00:00 2001 From: Sudarsan Balaji Date: Sun, 17 Oct 2021 02:45:38 +0530 Subject: [PATCH] Stop printing to console when confirming --- bindings/bdk-kotlin/demo/src/main/kotlin/Main.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bindings/bdk-kotlin/demo/src/main/kotlin/Main.kt b/bindings/bdk-kotlin/demo/src/main/kotlin/Main.kt index b1de13b..f24fe90 100644 --- a/bindings/bdk-kotlin/demo/src/main/kotlin/Main.kt +++ b/bindings/bdk-kotlin/demo/src/main/kotlin/Main.kt @@ -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) }