Formatting

This commit is contained in:
Jack Grigg 2018-07-31 23:28:42 +01:00
parent eec85c4388
commit fbd029d99d
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
1 changed files with 2 additions and 2 deletions

View File

@ -3172,7 +3172,7 @@ UniValue z_listaddresses(const UniValue& params, bool fHelp)
{ {
std::set<libzcash::SproutPaymentAddress> addresses; std::set<libzcash::SproutPaymentAddress> addresses;
pwalletMain->GetPaymentAddresses(addresses); pwalletMain->GetPaymentAddresses(addresses);
for (auto addr : addresses ) { for (auto addr : addresses) {
if (fIncludeWatchonly || pwalletMain->HaveSpendingKey(addr)) { if (fIncludeWatchonly || pwalletMain->HaveSpendingKey(addr)) {
ret.push_back(EncodePaymentAddress(addr)); ret.push_back(EncodePaymentAddress(addr));
} }
@ -3183,7 +3183,7 @@ UniValue z_listaddresses(const UniValue& params, bool fHelp)
pwalletMain->GetSaplingPaymentAddresses(addresses); pwalletMain->GetSaplingPaymentAddresses(addresses);
libzcash::SaplingIncomingViewingKey ivk; libzcash::SaplingIncomingViewingKey ivk;
libzcash::SaplingFullViewingKey fvk; libzcash::SaplingFullViewingKey fvk;
for (auto addr : addresses ) { for (auto addr : addresses) {
if (fIncludeWatchonly || ( if (fIncludeWatchonly || (
pwalletMain->GetSaplingIncomingViewingKey(addr, ivk) && pwalletMain->GetSaplingIncomingViewingKey(addr, ivk) &&
pwalletMain->GetSaplingFullViewingKey(ivk, fvk) && pwalletMain->GetSaplingFullViewingKey(ivk, fvk) &&