Electric-Coin-Company / zcash-android-wallet-sdk

Native Android SDK for Zcash
MIT License
5 stars 9 forks source link

Consider fake networking client #898

Open HonzaR opened 1 year ago

HonzaR commented 1 year ago

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

After https://github.com/zcash/zcash-android-wallet-sdk/pull/675 and its follow-up issues, we could be able to make a fake networking client available to be consumed by sdk-lib tests, which would result in much less need for darkside testing in the sdk-lib module.

Describe the solution you'd like

The new fake client would implement a new CoroutineLightWalletClient interface to provide the same functionalities as the real client, but it would serve its result without a need for network communication.

pacu commented 1 year ago

I think that something like this is good for local tests. But attempting to replace dlwd would be duplicating the block synthesizer that's already present on dlwd and can be used on any wallet on any platfomr