Add 'hostid' to server_info

* Add json::Value conversion from beast::String
* Update rippled-example.cfg
This commit is contained in:
Vinnie Falco
2013-07-31 07:50:34 -07:00
parent f80c19577f
commit 052aee8f97
9 changed files with 58 additions and 36 deletions

View File

@@ -377,6 +377,18 @@ Value::Value ( const std::string& value )
value_.string_ = valueAllocator ()->duplicateStringValue ( value.c_str (),
(unsigned int)value.length () );
}
Value::Value (beast::String const& beastString)
: type_ ( stringValue )
, allocated_ ( true )
, comments_ ( 0 )
# ifdef JSON_VALUE_USE_INTERNAL_MAP
, itemIsUsed_ ( 0 )
#endif
{
value_.string_ = valueAllocator ()->duplicateStringValue ( beastString.toStdString ().c_str (),
(unsigned int)beastString.length () );
}
Value::Value ( const StaticString& value )