Network api returns fc::variant_object instead of fc::variant
This commit is contained in:
parent
09855166a2
commit
de7b427472
2 changed files with 5 additions and 5 deletions
|
|
@ -141,11 +141,11 @@ namespace graphene { namespace app {
|
|||
{
|
||||
}
|
||||
|
||||
fc::variant network_node_api::get_info() const
|
||||
fc::variant_object network_node_api::get_info() const
|
||||
{
|
||||
fc::mutable_variant_object result = _app.p2p_node()->network_get_info();
|
||||
result["connection_count"] = _app.p2p_node()->get_connection_count();
|
||||
return result;
|
||||
fc::mutable_variant_object result = _app.p2p_node()->network_get_info();
|
||||
result["connection_count"] = _app.p2p_node()->get_connection_count();
|
||||
return result;
|
||||
}
|
||||
|
||||
void network_node_api::add_node(const fc::ip::endpoint& ep)
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ namespace graphene { namespace app {
|
|||
/**
|
||||
* @brief Return general network information, such as p2p port
|
||||
*/
|
||||
fc::variant get_info() const;
|
||||
fc::variant_object get_info() const;
|
||||
|
||||
/**
|
||||
* @brief add_node Connect to a new peer
|
||||
|
|
|
|||
Loading…
Reference in a new issue