36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
// Copyright (c) 2014-2018 Zano Project
|
|
// Copyright (c) 2014-2018 The Louisdor Project
|
|
// Copyright (c) 2012-2013 The Boolberry developers
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include "include_base_utils.h"
|
|
#include "storages/portable_storage_template_helper.h"
|
|
#include "currency_core/currency_format_utils.h"
|
|
|
|
void generate_test_genesis(size_t amount_of_accounts)
|
|
{
|
|
|
|
#if 0
|
|
// TODO: This test should be reviewed for correctness.
|
|
// commented out by sowle 2020-04-23, this test should be reviewed
|
|
|
|
currency::account_base acc;
|
|
currency::genesis_config_json_struct gcjs = AUTO_VAL_INIT(gcjs);
|
|
for (size_t i = 0; i != amount_of_accounts; i++)
|
|
{
|
|
acc.generate();
|
|
currency::genesis_payment_entry gpe = AUTO_VAL_INIT(gpe);
|
|
gpe.address_this = acc.get_public_address_str();
|
|
gpe.amount_this_coin_int = 10000000000;
|
|
gcjs.payments.push_back(gpe);
|
|
}
|
|
|
|
if (!epee::serialization::store_t_to_json_file(gcjs, "genesis_source.json"))
|
|
{
|
|
LOG_ERROR("Failed to store genesis JSON");
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|