Writing out version number.
This commit is contained in:
parent
43550586c7
commit
69e51ce2ed
2 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue