Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add legacy filtering mode #1271

Merged
merged 14 commits into from
May 24, 2022
Prev Previous commit
Next Next commit
Update attributes.cpp
prasannavl authored May 24, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 5aa282f23860033ceeb0bcf83cf0ad9b4f5e703e
4 changes: 2 additions & 2 deletions src/masternodes/govvariables/attributes.cpp
Original file line number Diff line number Diff line change
@@ -644,10 +644,10 @@ UniValue ATTRIBUTES::ExportFiltered(GovVarsFilter filter, const std::string &pre
if (!attrV0) {
continue;
}
if (filter == GovVarsFilter::Version2Dot7 &&
if (filter == GovVarsFilter::Live &&
attrV0->type != AttributeTypes::Live) {
continue;
} else if (filter == GovVarsFilter::) {
} else if (filter == GovVarsFilter::Version2Dot7) {
if (attrV0->type == AttributeTypes::Token &&
attrsVersion27TokenHiddenSet.find(attrV0->key) != attrsVersion27TokenHiddenSet.end())
continue;