Writing out version number.

This commit is contained in:
clemahieu 2016-02-05 23:58:00 -06:00
commit 69e51ce2ed
2 changed files with 2 additions and 0 deletions

View file

@ -691,6 +691,7 @@ receive_minimum (rai::Mrai_ratio)
void rai::node_config::serialize_json (boost::property_tree::ptree & tree_a) const
{
tree_a.put ("version", "2");
tree_a.put ("peering_port", std::to_string (peering_port));
tree_a.put ("packet_delay_microseconds", std::to_string (packet_delay_microseconds));
tree_a.put ("bootstrap_fraction_numerator", std::to_string (bootstrap_fraction_numerator));

View file

@ -83,6 +83,7 @@ public:
{
std::string wallet_string;
wallet.encode_hex (wallet_string);
tree_a.put ("version", "2");
tree_a.put ("wallet", wallet_string);
tree_a.put ("account", account.to_account ());
boost::property_tree::ptree node_l;