Fixing compile issue.
This commit is contained in:
parent
2afa2ec8ec
commit
74adba4250
1 changed files with 3 additions and 1 deletions
|
@ -1476,7 +1476,9 @@ void rai::rpc_handler::peers ()
|
|||
{
|
||||
std::stringstream text;
|
||||
text << i->first;
|
||||
peers_l.push_back(boost::property_tree::ptree::value_type(text.str (), std::to_string (i->second)));
|
||||
boost::property_tree::ptree entry;
|
||||
entry.put (text.str (), std::to_string (i->second));
|
||||
peers_l.push_back (std::make_pair ("", entry));
|
||||
}
|
||||
response_l.add_child ("peers", peers_l);
|
||||
response (response_l);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue