From d2df3dd53488d6ae433118d676eba1ea26bf1185 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 11 Nov 2014 11:45:57 -0800 Subject: [PATCH] remove useless if statement. --- src/bitcoindjs.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 7ed2b4f1..359beac7 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -4752,10 +4752,8 @@ NAN_METHOD(WalletImportKey) { static void async_import_key(uv_work_t *req) { async_import_key_data* data = static_cast(req->data); - if (data->fRescan) { - // This may take a long time, do it on the libuv thread pool: - pwalletMain->ScanForWalletTransactions(chainActive.Genesis(), true); - } + // This may take a long time, do it on the libuv thread pool: + pwalletMain->ScanForWalletTransactions(chainActive.Genesis(), true); } static void