Electric-Coin-Company / zashi-android

The Zashi Zcash Wallet, Android Edition
MIT License
27 stars 14 forks source link

Put UTXOs Rust error: `Network type mismatch` #1656

Open HonzaR opened 1 month ago

HonzaR commented 1 month ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Alternatives you've considered

Additional context

java.lang.RuntimeException: Error while inserting UTXO: Data DB is corrupted: Network type mismatch
at cash.z.ecc.android.sdk.internal.jni.RustBackend.putUtxo(Native Method)
at cash.z.ecc.android.sdk.internal.jni.RustBackend.access$putUtxo(Unknown Source:0)
at cash.z.ecc.android.sdk.internal.jni.RustBackend$putUtxo$2.invokeSuspend(Unknown Source:30)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:112)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)

Internal resources:

HonzaR commented 1 month ago

Sending transparent funds from a Kraken account to a Zashi wallet did not cause problems and worked as expected.

HonzaR commented 3 weeks ago

Closing this waits for the latest Rust crates bump in SDK.