Skip to content

Commit

Permalink
[FOLD] address versioning for new UNL fields
Browse files Browse the repository at this point in the history
  • Loading branch information
undertome committed Jan 12, 2022
1 parent ff78b8f commit 99682e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ripple/app/misc/impl/ValidatorList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ ValidatorList::getJson(std::optional<RPC::JsonContext> context) const
auto appendList = [&context](
PublisherList const& publisherList,
Json::Value& target) {
if (context.has_value() && context->apiVersion == 1)
if ((context && context->apiVersion == 1) || !context)
target[jss::uri] = publisherList.sourceUri.empty()
? publisherList.sourcePeer
: publisherList.sourceUri;
Expand Down

0 comments on commit 99682e8

Please sign in to comment.