aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-29 19:06:14 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-29 19:06:14 +0100
commitbf2d911365929bdfc96db644e9c8164a4bdcc69b (patch)
treec30d1dee105166e37f8c65e7fbc070856870634a /src/simplewallet
parentMerge pull request #2533 (diff)
downloadmonero-bf2d911365929bdfc96db644e9c8164a4bdcc69b.tar.xz
simplewallet: fix --restore-from-height being ignored
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 937403c66..9c736aa03 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -1398,8 +1398,9 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
}
}
}
- m_wallet->set_refresh_from_block_height(m_restore_height);
}
+ if (m_restoring)
+ m_wallet->set_refresh_from_block_height(m_restore_height);
}
else
{