rework ClientModel::getBlockSource() + BitcoinGUI::setNumBlocks()

- updates ClientModel::getBlockSource() to return all available states and
  sorts enum BlockSource in order of usage cases (none default, then reindex,
  import and network)
- updates BitcoinGUI::setNumBlocks() to better use getBlockSource() and
  also adds a message, when we have NO block source available
This commit is contained in:
Philip Kaufmann
2013-04-10 15:45:49 +02:00
parent 1258dde48d
commit 4881353efe
3 changed files with 23 additions and 26 deletions

View File

@@ -15,9 +15,9 @@ QT_END_NAMESPACE
enum BlockSource {
BLOCK_SOURCE_NONE,
BLOCK_SOURCE_NETWORK,
BLOCK_SOURCE_REINDEX,
BLOCK_SOURCE_DISK,
BLOCK_SOURCE_REINDEX
BLOCK_SOURCE_NETWORK
};
/** Model for Bitcoin network client. */