decred / dcrwallet

A secure Decred wallet daemon written in Go (golang).
https://decred.org
ISC License
215 stars 155 forks source link

Proxy support for SPV connection #1491

Open itswisdomagain opened 5 years ago

itswisdomagain commented 5 years ago

dcrwallet only currently supports specifying/using proxy for RPC connection. Can similar feature be added for SPV connection?

UPDATE: I'm requesting this dcrwallet provision for use on the mobile (Android/iOS) wallets. A feature to enable users specify proxy information that can then be applied to both SPV and RPC connections.

jrick commented 5 years ago

Should be doable in theory. It might already work (but I haven't tested this) if you are using the libc DNS resolver instead of the native Go one (e.g. you haven't cross compiled and are not using the netgo build tag) and the PROXY environment variable is set.

itswisdomagain commented 5 years ago

@jrick your suggestion might work, but it'd be better/more straightforward to include this as a dcrwallet feature. I've updated the issue description to better inform the desired use case. The goal is to roll out the feature as seamlessly as possible on decred wallets.