Add "Shield to sapling" menu item on balances table.

This commit is contained in:
Aditya Kulkarni
2018-11-17 10:22:01 -08:00
parent b1b06989b7
commit 9ee81ebbba
3 changed files with 34 additions and 1 deletions

View File

@@ -1009,3 +1009,15 @@ void RPC::getZboardTopics(std::function<void(QMap<QString, QString>)> cb) {
}
});
}
/**
* Get a Sapling address from the user's wallet
*/
QString RPC::getDefaultSaplingAddress() {
for (QString addr: *zaddresses) {
if (Settings::getInstance()->isSaplingAddress(addr))
return addr;
}
return QString();
}