wallet: make the wallet refresh type a wallet setting

instead of a command line setting. It makes sense that is is
a long lived setting.
This commit is contained in:
moneromooo-monero
2015-12-05 21:44:25 +00:00
parent fef2493617
commit c6cfe0f26d
4 changed files with 93 additions and 34 deletions
+2 -1
View File
@@ -84,6 +84,7 @@ namespace tools
RefreshFull,
RefreshOptimizeCoinbase,
RefreshNoCoinbase,
RefreshDefault = RefreshOptimizeCoinbase,
};
private:
@@ -244,7 +245,7 @@ namespace tools
bool refresh(uint64_t & blocks_fetched, bool& received_money, bool& ok);
void set_refresh_type(RefreshType refresh_type) { m_refresh_type = refresh_type; }
RefreshType get_refresh_type(RefreshType refresh_type) const { return m_refresh_type; }
RefreshType get_refresh_type() const { return m_refresh_type; }
bool testnet() const { return m_testnet; }
bool restricted() const { return m_restricted; }