whphhg / vcash-electron

Multi-platform and multi-node GUI for Vcash.
GNU General Public License v3.0
38 stars 18 forks source link

Sending using zerotime #25

Open whphhg opened 7 years ago

whphhg commented 7 years ago

Sending using zerotime is not available directly when using the sendtoaddress, sendmany and sendfrom RPCs, which the GUI relies on. I've added the two toggles for zerotime and blended only in the sending view (like wxWidgets has), but they will remain disabled until the support for those two options is exposed in the RPCs. I've since removed those two toggles.

For example, here are the lines in source that disable the above options in the sendfrom RPC.

/**
 * Do not use ZeroTime over RPC.
 */
auto use_zerotime = false;

/**
 * Use any coins.
 */
auto use_only_chainblended = false;

However, there is support for the ztlock RPC which @xCoreDev pushed some time ago, which performs a zerotime lock on a transaction. You can lock any unconfirmed sending or receiving tx that hasn't yet been locked in the transaction details upper right corner.