Removing unsupported stuff and building based on service.proto from our lightwalletd

This commit is contained in:
fekt
2022-07-02 21:02:11 -04:00
parent 0131016214
commit 0b24b41c6e
20 changed files with 123 additions and 150 deletions

View File

@@ -80,10 +80,12 @@ class TestWallet(
val networkName get() = synchronizer.network.networkName
val connectionInfo get() = service.connectionInfo.toString()
/* NOT SUPPORTED IN HUSH LIGHTWALLETD
suspend fun transparentBalance(): WalletBalance {
synchronizer.refreshUtxos(transparentAddress, synchronizer.latestBirthdayHeight)
return synchronizer.getTransparentBalance(transparentAddress)
}
*/
suspend fun sync(timeout: Long = -1): TestWallet {
val killSwitch = walletScope.launch {
@@ -122,6 +124,7 @@ class TestWallet(
return this
}
/* NOT SUPPORTED IN HUSH LIGHTWALLETD
suspend fun shieldFunds(): TestWallet {
twig("checking $transparentAddress for transactions!")
synchronizer.refreshUtxos(transparentAddress, 935000).let { count ->
@@ -141,6 +144,7 @@ class TestWallet(
return this
}
*/
suspend fun join(timeout: Long? = null): TestWallet {
// block until stopped