https://travis-ci.org/github/MarcoFalke/btc_nightly/jobs/680655419#L412
continue;
            }
            isminefilter mine = pwallet->IsMine(address);
            if(!(mine & filter))
                continue;
            tallyitem& item = mapTally[address];
            item.nAmount += txout.nValue;
            item.nConf = std::min(item.nConf, nDepth);
            item.txids.push_back(wtx.GetHash());
            if (mine & ISMINE_WATCH_ONLY)
                item.fIsWatchonly = true;
        }
    }
    
    UniValue ret(UniValue::VARR);
    std::map<std::string, tallyitem> label_tally;
    
    
    auto start = pwallet->m_address_book.begin();
    auto end = pwallet->m_address_book.end();
    
    if (has_filtered_address) {
        start = pwallet->m_address_book.find(filtered_address);
        if (start != end) {
            end = std::next(start);
        }
    }
    for (auto item_it = start; item_it != end; ++item_it)
    {
        if (item_it->second.IsChange()) continue;