From 50dc701ec4e9cca5f90c18887e87df63ef926d7d Mon Sep 17 00:00:00 2001 From: Sudarsan Balaji Date: Sun, 17 Oct 2021 02:51:46 +0530 Subject: [PATCH] Avoid superflous printlns --- bindings/bdk-kotlin/demo/src/main/kotlin/Main.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bindings/bdk-kotlin/demo/src/main/kotlin/Main.kt b/bindings/bdk-kotlin/demo/src/main/kotlin/Main.kt index f24fe90..64b2ed4 100644 --- a/bindings/bdk-kotlin/demo/src/main/kotlin/Main.kt +++ b/bindings/bdk-kotlin/demo/src/main/kotlin/Main.kt @@ -2,7 +2,7 @@ import uniffi.bdk.* class LogProgress: BdkProgress { override fun update(progress: Float, message: String? ) { - println("progress: $progress, message: $message") + println("Syncing..") } } @@ -26,12 +26,10 @@ fun main(args: Array) { val db = DatabaseConfig.Memory("") val client = BlockchainConfig.Electrum(ElectrumConfig("ssl://electrum.blockstream.info:60002", null, 5u, null, 10u)) val wallet = OnlineWallet(descriptor, Network.TESTNET, db, client) - println("Syncing...") wallet.sync(LogProgress(), null) println("Initial wallet balance: ${wallet.getBalance()}") println("Please send $amount satoshis to address: ${wallet.getNewAddress()}") readLine() - println("Syncing...") wallet.sync(LogProgress(), null) println("New wallet balance: ${wallet.getBalance()}") println("Press Enter to return funds")