forked from lthn/blockchain
coretests fixed
This commit is contained in:
parent
db2c183b47
commit
5ce299e23c
2 changed files with 4 additions and 4 deletions
|
|
@ -612,7 +612,7 @@ gen_no_attchments_in_coinbase::gen_no_attchments_in_coinbase()
|
|||
// NOTE: This test is made deterministic to be able to correctly set up checkpoint.
|
||||
random_state_test_restorer::reset_random(); // random generator's state was previously stored, will be restore on dtor (see also m_random_state_test_restorer)
|
||||
|
||||
bool r = m_miner_acc.restore_from_seed_phrase("battle harsh arrow gain best doubt nose raw protect salty apart tell distant final yeah stubborn true stop shoulder breathe throne problem everyone stranger only");
|
||||
bool r = m_miner_acc.restore_from_seed_phrase("battle harsh arrow gain best doubt nose raw protect salty apart tell distant final yeah stubborn true stop shoulder breathe throne problem everyone stranger only", "");
|
||||
CHECK_AND_ASSERT_THROW_MES(r, "gen_no_attchments_in_coinbase: Can't restore account from seed phrase");
|
||||
|
||||
REGISTER_CALLBACK_METHOD(gen_no_attchments_in_coinbase, c1);
|
||||
|
|
|
|||
|
|
@ -1042,7 +1042,7 @@ bool hard_fork_2_awo_wallets_basic_test<before_hf_2>::c1(currency::core& c, size
|
|||
|
||||
boost::filesystem::remove(bob_wo_restored_filename, ec);
|
||||
|
||||
bob_wlt_awo_restored->restore(bob_wo_restored_filename, "", bob_tracking_seed, true);
|
||||
bob_wlt_awo_restored->restore(bob_wo_restored_filename, "", bob_tracking_seed, true, "");
|
||||
bob_wlt_awo_restored->set_core_runtime_config(c.get_blockchain_storage().get_core_runtime_config());
|
||||
bob_wlt_awo_restored->set_core_proxy(m_core_proxy);
|
||||
|
||||
|
|
@ -1073,14 +1073,14 @@ bool hard_fork_2_awo_wallets_basic_test<before_hf_2>::c1(currency::core& c, size
|
|||
// Restore Bob wallet as non-auditable and spend mix_attr!=1 output => make sure other auditable Bob's wallets remain intact
|
||||
//
|
||||
|
||||
std::string bob_seed = bob_wlt->get_account().get_seed_phrase();
|
||||
std::string bob_seed = bob_wlt->get_account().get_seed_phrase("");
|
||||
bob_seed.erase(bob_seed.find_last_of(" ")); // remove the last word (with flags and checksum) to make seed old-format 25-words non-auditable with the same keys
|
||||
|
||||
std::shared_ptr<tools::wallet2> bob_wlt_non_auditable = std::make_shared<tools::wallet2>();
|
||||
|
||||
boost::filesystem::remove(bob_non_auditable_filename, ec);
|
||||
|
||||
bob_wlt_non_auditable->restore(bob_non_auditable_filename, "", bob_seed, false);
|
||||
bob_wlt_non_auditable->restore(bob_non_auditable_filename, "", bob_seed, false, "");
|
||||
bob_wlt_non_auditable->set_core_runtime_config(c.get_blockchain_storage().get_core_runtime_config());
|
||||
bob_wlt_non_auditable->set_core_proxy(m_core_proxy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue