Merge pull request #3028

a4b006f9 wallet2 bugfix: initialize subaddress table when generating from keys (stoffu)
This commit is contained in:
Riccardo Spagni 2018-01-25 16:42:06 -08:00
commit b2ce5739df
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -2983,6 +2983,7 @@ void wallet2::generate(const std::string& wallet_, const epee::wipeable_string&
cryptonote::block b;
generate_genesis(b);
m_blockchain.push_back(get_block_hash(b));
add_subaddress_account(tr("Primary account"));
if (!wallet_.empty())
store();