Skip to content

Commit

Permalink
Fix wallet import for old JSON files (#1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiySW committed Feb 11, 2019
1 parent 46b3452 commit acf69e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/wallet.cpp
Expand Up @@ -884,7 +884,7 @@ bool nano::wallet::import (std::string const & json_a, std::string const & passw
}
if (!error)
{
auto transaction (wallets.tx_begin_read ());
auto transaction (wallets.tx_begin_write ());
error = temp->attempt_password (transaction, password_a);
}
auto transaction (wallets.tx_begin_write ());
Expand Down

0 comments on commit acf69e2

Please sign in to comment.