dcrdex
dcrdex copied to clipboard
dcr: Allow ticket purchasing for rpc spv wallets.
The biggest blocker for this is that currently the GetTickets
rpc call will not work over rpc with an spv wallet. That will need to be "fixed" over in dcrwallet. The second problem is that, if a vsp is not set, purchasing will fail, and we currently have no way to know if an ~spv~ vsp is set. If it's ok to just fail sometimes, maybe with a message asking the user to make sure a vsp is set, then maybe that's fine. Maybe we can also add some data to GetTickets
or a new command to see if a vsp is currently set.
Maybe we can also add some data to
GetTickets
or a new command to see if a vsp is currently set.
Maybe add a field to the walletinfo
response?
Maybe add a field to the walletinfo response?
I think this is what I initially suggested to @jrick but maybe we can now.
just opened decred/dcrwallet#2305 which adds the result to getinfo.
But also now I'm seeing that a similar field was already added to walletinfo, so I'm not sure if this is even needed (a "spv" field is set to true if it's currently syncing with the spv syncer).
The second problem is that, if a vsp is not set, purchasing will fail, and we currently have no way to know if an spv is set
ah, this typo threw me off (spv instead of vsp...).
Gonna close the above pr then since the issue is only about detecting vsp settings, afaict.
decred/dcrwallet#2306
ah, this typo threw me off (spv instead of vsp...).
srry... I do that a lot.
The biggest blocker for this is that currently the GetTickets rpc call will not work over rpc with an spv wallet.
https://github.com/decred/dcrwallet/pull/2321
@buck54321 I guess we need to use master to have those changes? I attempted to use master with the simnet harness but https://github.com/decred/dcrwallet/pull/2340 is causing wallet sync to stop.
@JoeGruffins dcrwallet has a 2.0.0 release now. Can you update the dep here?
@buck54321 it looks like all of the vsp fee processing logic has been removed from the vspd repo and is internal to wallet again.
https://github.com/decred/dcrwallet/issues/2033