initialize block_size_limit_str and block_size_median_str

This commit is contained in:
moneroexamples 2018-05-02 07:23:14 +08:00
parent c103a34eba
commit bf8b2eb05b

View file

@ -227,8 +227,10 @@ main(int ac, const char* av[])
xmreg::MempoolStatus::set_blockchain_variables( xmreg::MempoolStatus::set_blockchain_variables(
&mcore, core_storage); &mcore, core_storage);
strcpy(xmreg::MempoolStatus::current_network_info.block_size_limit_str, "0.0"); xmreg::MempoolStatus::network_info initial_info;
strcpy(xmreg::MempoolStatus::current_network_info.block_size_median_str, "0.0"); strcpy(initial_info.block_size_limit_str, "0.0");
strcpy(initial_info.block_size_median_str, "0.0");
xmreg::MempoolStatus::current_network_info = initial_info;
try try
{ {