From acf69e28a4b872982d5f80be695f87492e10040c Mon Sep 17 00:00:00 2001 From: Sergey Kroshnin Date: Mon, 11 Feb 2019 19:49:49 +0300 Subject: [PATCH] Fix wallet import for old JSON files (#1712) --- nano/node/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ());