Modify comments
This commit is contained in:
@@ -2535,7 +2535,7 @@ UniValue z_listunspent(const UniValue& params, bool fHelp)
|
|||||||
string address = o.get_str();
|
string address = o.get_str();
|
||||||
auto zaddr = DecodePaymentAddress(address);
|
auto zaddr = DecodePaymentAddress(address);
|
||||||
if (IsValidPaymentAddress(zaddr)) {
|
if (IsValidPaymentAddress(zaddr)) {
|
||||||
// TODO: Add Sapling support. For now, ensure we can freely convert.
|
// TODO: Add visitor to handle support for Sprout and Sapling addrs.
|
||||||
if (boost::get<libzcash::SproutPaymentAddress>(&zaddr) != nullptr){
|
if (boost::get<libzcash::SproutPaymentAddress>(&zaddr) != nullptr){
|
||||||
libzcash::SproutPaymentAddress sproutAddr = boost::get<libzcash::SproutPaymentAddress>(zaddr);
|
libzcash::SproutPaymentAddress sproutAddr = boost::get<libzcash::SproutPaymentAddress>(zaddr);
|
||||||
if (!fIncludeWatchonly && !pwalletMain->HaveSproutSpendingKey(sproutAddr)) {
|
if (!fIncludeWatchonly && !pwalletMain->HaveSproutSpendingKey(sproutAddr)) {
|
||||||
@@ -2567,10 +2567,10 @@ UniValue z_listunspent(const UniValue& params, bool fHelp)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// User did not provide zaddrs, so use default i.e. all addresses
|
// User did not provide zaddrs, so use default i.e. all addresses
|
||||||
// TODO: Add Sapling support
|
|
||||||
std::set<libzcash::SproutPaymentAddress> sproutzaddrs = {};
|
std::set<libzcash::SproutPaymentAddress> sproutzaddrs = {};
|
||||||
pwalletMain->GetSproutPaymentAddresses(sproutzaddrs);
|
pwalletMain->GetSproutPaymentAddresses(sproutzaddrs);
|
||||||
|
|
||||||
|
// Sapling support
|
||||||
std::set<libzcash::SaplingPaymentAddress> saplingzaddrs = {};
|
std::set<libzcash::SaplingPaymentAddress> saplingzaddrs = {};
|
||||||
pwalletMain->GetSaplingPaymentAddresses(saplingzaddrs);
|
pwalletMain->GetSaplingPaymentAddresses(saplingzaddrs);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user