Removing unsupported stuff and building based on service.proto from our lightwalletd
This commit is contained in:
@@ -83,7 +83,7 @@ class SanityTest(
|
||||
fun testServerConnection() {
|
||||
assertEquals(
|
||||
"$name has an invalid server connection",
|
||||
"$networkName.lightwalletd.com:9067?usePlaintext=false",
|
||||
"$networkName.lite.hushpool.is:9067?usePlaintext=true",
|
||||
wallet.connectionInfo
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="lightwalletd_allow_very_insecure_connections">false</bool>
|
||||
<bool name="lightwalletd_allow_very_insecure_connections">true</bool>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user