Avoid superflous printlns
This commit is contained in:
parent
87437fbddc
commit
50dc701ec4
@ -2,7 +2,7 @@ import uniffi.bdk.*
|
|||||||
|
|
||||||
class LogProgress: BdkProgress {
|
class LogProgress: BdkProgress {
|
||||||
override fun update(progress: Float, message: String? ) {
|
override fun update(progress: Float, message: String? ) {
|
||||||
println("progress: $progress, message: $message")
|
println("Syncing..")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,12 +26,10 @@ fun main(args: Array<String>) {
|
|||||||
val db = DatabaseConfig.Memory("")
|
val db = DatabaseConfig.Memory("")
|
||||||
val client = BlockchainConfig.Electrum(ElectrumConfig("ssl://electrum.blockstream.info:60002", null, 5u, null, 10u))
|
val client = BlockchainConfig.Electrum(ElectrumConfig("ssl://electrum.blockstream.info:60002", null, 5u, null, 10u))
|
||||||
val wallet = OnlineWallet(descriptor, Network.TESTNET, db, client)
|
val wallet = OnlineWallet(descriptor, Network.TESTNET, db, client)
|
||||||
println("Syncing...")
|
|
||||||
wallet.sync(LogProgress(), null)
|
wallet.sync(LogProgress(), null)
|
||||||
println("Initial wallet balance: ${wallet.getBalance()}")
|
println("Initial wallet balance: ${wallet.getBalance()}")
|
||||||
println("Please send $amount satoshis to address: ${wallet.getNewAddress()}")
|
println("Please send $amount satoshis to address: ${wallet.getNewAddress()}")
|
||||||
readLine()
|
readLine()
|
||||||
println("Syncing...")
|
|
||||||
wallet.sync(LogProgress(), null)
|
wallet.sync(LogProgress(), null)
|
||||||
println("New wallet balance: ${wallet.getBalance()}")
|
println("New wallet balance: ${wallet.getBalance()}")
|
||||||
println("Press Enter to return funds")
|
println("Press Enter to return funds")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user