forked from lthn/blockchain
fixed issues with wallet_tests_basic
This commit is contained in:
parent
fc473c97e6
commit
433125716e
1 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue