1
0
Fork 0
forked from lthn/blockchain

fixed issues with wallet_tests_basic

This commit is contained in:
cryptozoidberg 2023-08-28 20:50:40 +02:00
parent fc473c97e6
commit 433125716e
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -22,10 +22,10 @@ struct wallet_test : virtual public test_chain_unit_enchanced
static std::string get_test_account_name_by_id(size_t acc_id);
template<typename wallet_t>
std::shared_ptr<typename wallet_t> init_playtime_test_wallet_t(const std::vector<test_event_entry>& events, currency::core& c, const currency::account_base& acc) const
std::shared_ptr<wallet_t> init_playtime_test_wallet_t(const std::vector<test_event_entry>& events, currency::core& c, const currency::account_base& acc) const
{
CHECK_AND_ASSERT_THROW_MES(events.size() > 0 && events[0].type() == typeid(currency::block), "Invalid events queue, can't find genesis block at the beginning");
crypto::hash genesis_hash = get_block_hash(boost::get<block>(events[0]));
crypto::hash genesis_hash = get_block_hash(boost::get<currency::block>(events[0]));
std::shared_ptr<wallet_t> w(new wallet_t);
w->set_core_runtime_config(c.get_blockchain_storage().get_core_runtime_config());