aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2017-12-29 15:53:28 +0900
committerstoffu <stoffu@protonmail.ch>2017-12-29 15:53:28 +0900
commita4b006f96588038f48608a4f422826ad8ae53aa3 (patch)
tree53c10d76e07904060e2f326cbf67bb28fc54b7e1 /src/wallet/wallet2.cpp
parentMerge pull request #2955 (diff)
downloadmonero-a4b006f96588038f48608a4f422826ad8ae53aa3.tar.xz
wallet2 bugfix: initialize subaddress table when generating from keys
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index d6f4b9b98..c663457f3 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -2821,6 +2821,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();