Auto shielding for t Addresses

This commit is contained in:
adityapk00
2018-11-23 17:30:21 -08:00
parent 49da8ed5ee
commit b428f40def
7 changed files with 108 additions and 26 deletions

View File

@@ -387,6 +387,9 @@ void MainWindow::setupSettingsModal() {
// Custom fees
settings.chkCustomFees->setChecked(Settings::getInstance()->getAllowCustomFees());
// Auto shielding
settings.chkAutoShield->setChecked(Settings::getInstance()->getAutoShield());
// Connection Settings
QIntValidator validator(0, 65535);
settings.port->setValidator(&validator);
@@ -426,6 +429,9 @@ void MainWindow::setupSettingsModal() {
if (!customFees)
ui->minerFeeAmt->setText(Settings::getDecimalString(Settings::getMinerFee()));
// Auto shield
Settings::getInstance()->setAutoShield(settings.chkAutoShield->isChecked());
if (zcashConfLocation.isEmpty()) {
// Save settings
Settings::getInstance()->saveSettings(
@@ -567,6 +573,7 @@ void MainWindow::postToZBoard() {
auto toAddr = topics[zb.topicsList->currentText()];
tx.toAddrs.push_back(ToFields{ toAddr, Settings::getZboardAmount(), memo, memo.toUtf8().toHex() });
tx.fee = Settings::getMinerFee();
tx.sendChangeToSapling = false;
json params = json::array();
rpc->fillTxJsonParams(params, tx);