api/wallet: properly disable key encryption

This commit is contained in:
stoffu 2018-08-25 14:22:26 +09:00
parent bb30a72367
commit ba8dd3479d
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012
7 changed files with 15 additions and 16 deletions

View file

@ -61,7 +61,7 @@ static void make_wallet(unsigned int idx, tools::wallet2 &wallet)
try
{
wallet.init(false, "");
wallet.init("");
wallet.set_subaddress_lookahead(1, 1);
wallet.generate("", "", spendkey, true, false);
ASSERT_TRUE(test_addresses[idx].address == wallet.get_account().get_public_address_str(cryptonote::TESTNET));