diff --git a/nano/node/wallet.cpp b/nano/node/wallet.cpp index c0487693..fa54b90f 100644 --- a/nano/node/wallet.cpp +++ b/nano/node/wallet.cpp @@ -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 ());