Fix wallet import for old JSON files (#1712)

This commit is contained in:
Sergey Kroshnin 2019-02-11 19:49:49 +03:00 committed by GitHub
commit acf69e28a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ());