diff --git a/rai/node/node.cpp b/rai/node/node.cpp index d39b28f7..ea39289f 100644 --- a/rai/node/node.cpp +++ b/rai/node/node.cpp @@ -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)); diff --git a/rai/rai_wallet/entry.cpp b/rai/rai_wallet/entry.cpp index db27e0a0..c568e796 100644 --- a/rai/rai_wallet/entry.cpp +++ b/rai/rai_wallet/entry.cpp @@ -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;